Skip to content

Commit a9e5b73

Browse files
dhowellstorvalds
authored andcommitted
vfs: Undo an overly zealous MS_RDONLY -> SB_RDONLY conversion
In do_mount() when the MS_* flags are being converted to MNT_* flags, MS_RDONLY got accidentally convered to SB_RDONLY. Undo this change. Fixes: e462ec5 ("VFS: Differentiate mount flags (MS_*) from internal superblock flags") Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 6606259 commit a9e5b73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/namespace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2815,7 +2815,7 @@ long do_mount(const char *dev_name, const char __user *dir_name,
28152815
mnt_flags |= MNT_NODIRATIME;
28162816
if (flags & MS_STRICTATIME)
28172817
mnt_flags &= ~(MNT_RELATIME | MNT_NOATIME);
2818-
if (flags & SB_RDONLY)
2818+
if (flags & MS_RDONLY)
28192819
mnt_flags |= MNT_READONLY;
28202820

28212821
/* The default atime for remount is preservation */

0 commit comments

Comments
 (0)