[PATCH] qnx6: convert mount option checking code to test_opt()
From: Chengguang Xu
Date: Tue May 21 2019 - 11:09:31 EST
Convert mount option checking code to test_opt() in
qnx6_show_options().
Signed-off-by: Chengguang Xu <cgxu519@xxxxxxxxxxx>
---
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