Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: e462ec50cb5f ("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>

authored by

David Howells and committed by
Linus Torvalds
a9e5b732 66062592

+1 -1
+1 -1
fs/namespace.c
··· 2815 2815 mnt_flags |= MNT_NODIRATIME; 2816 2816 if (flags & MS_STRICTATIME) 2817 2817 mnt_flags &= ~(MNT_RELATIME | MNT_NOATIME); 2818 - if (flags & SB_RDONLY) 2818 + if (flags & MS_RDONLY) 2819 2819 mnt_flags |= MNT_READONLY; 2820 2820 2821 2821 /* The default atime for remount is preservation */