Commit 654e3aee authored by Li Lingfeng's avatar Li Lingfeng
Browse files

Revert "nfs: ignore SB_RDONLY when mounting nfs"

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IBNEQX



--------------------------------

This reverts commit ed901d64.

Since flags passed by users can not be set to fc->sb_flags, check of
fc->sb_flags in nfs_compare_mount_options is useless.
The second mount may get the superblock of the first mount since
nfs_compare_mount_options will return true, resulting the change of
s_flags.
Revert this patch and fix the origin issue later.

Fixes: ed901d64 ("nfs: ignore SB_RDONLY when mounting nfs")
Signed-off-by: default avatarLi Lingfeng <lilingfeng3@huawei.com>
parent 1b6f3741
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
#include <linux/nfs_page.h>
#include <linux/wait_bit.h>

#define NFS_MS_MASK (SB_NOSUID|SB_NODEV|SB_NOEXEC|SB_SYNCHRONOUS)
#define NFS_MS_MASK (SB_RDONLY|SB_NOSUID|SB_NODEV|SB_NOEXEC|SB_SYNCHRONOUS)

extern const struct export_operations nfs_export_ops;