lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20190521145055.26800-1-cgxu519@zoho.com.cn>
Date:   Tue, 21 May 2019 22:50:55 +0800
From:   Chengguang Xu <cgxu519@...o.com.cn>
To:     viro@...iv.linux.org.uk
Cc:     linux-kernel@...r.kernel.org, Chengguang Xu <cgxu519@...o.com.cn>
Subject: [PATCH] qnx6: convert mount option checking code to test_opt()

Convert mount option checking code to test_opt() in
qnx6_show_options().

Signed-off-by: Chengguang Xu <cgxu519@...o.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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ