vfs: Undo an overly zealous MS_RDONLY -> SB_RDONLY conversion
authorDavid Howells <dhowells@redhat.com>
Fri, 20 Apr 2018 12:35:02 +0000 (13:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Jun 2018 19:02:45 +0000 (04:02 +0900)
commit6bf379f26a549f06a6b38a9594a06b1b213e18de
tree78bbc472ed12b009eac56b580ac1f019b9a81df9
parentbd595dbfcbd640e8270e8fdfe8b91226a80242ac
vfs: Undo an overly zealous MS_RDONLY -> SB_RDONLY conversion

[ Upstream commit a9e5b73288cf1595ac2e05cf1acd1924ceea05fa ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/namespace.c