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-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/