lkml.org 
[lkml]   [2019]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] qnx6: convert mount option checking code to test_opt()
Date
Convert mount option checking code to test_opt() in
qnx6_show_options().

Signed-off-by: Chengguang Xu <cgxu519@zoho.com.cn>
---
fs/qnx6/inode.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/qnx6/inode.c b/fs/qnx6/inode.c
index 59cf45f6be49..c3a80700e7a6 100644
--- a/fs/qnx6/inode.c
+++ b/fs/qnx6/inode.c
@@ -46,9 +46,8 @@ static const struct super_operations qnx6_sops = {
static int qnx6_show_options(struct seq_file *seq, struct dentry *root)
{
struct super_block *sb = root->d_sb;
- struct qnx6_sb_info *sbi = QNX6_SB(sb);

- if (sbi->s_mount_opt & QNX6_MOUNT_MMI_FS)
+ if (test_opt(sb, MMI_FS))
seq_puts(seq, ",mmi_fs");
return 0;
}
--
2.17.2

\
 
 \ /
  Last update: 2019-05-21 17:07    [W:0.027 / U:22.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site