This revision implements a suggestion from Mateusz Guzik to do `mnt->mnt.mnt_flags |= MNT_READONLY`. As he pointed out, there are no writers against which to synchronize, so we can adjust the flag directly. This becomes obvious when we see that set_mnt_shared() sets the MNT_SHARED flag directly. Richard Yao (1): vfs: Respect MS_RDONLY at bind mount creation fs/namespace.c | 20 ++++++++++++++++---- fs/pnode.h | 17 +++++++++-------- 2 files changed, 25 insertions(+), 12 deletions(-) -- 1.8.5.5 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html