mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/1] vfs: Respect MS_RDONLY at bind mount creation
@ 2014-09-30  0:34 Richard Yao
  2014-09-30  0:34 ` [PATCH] " Richard Yao
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Yao @ 2014-09-30  0:34 UTC (permalink / raw)
  To: viro
  Cc: kernel, mthode, michael, drobbins, linux-fsdevel, linux-kernel,
	Richard Yao

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-30  0:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-30  0:34 [PATCH v4 0/1] vfs: Respect MS_RDONLY at bind mount creation Richard Yao
2014-09-30  0:34 ` [PATCH] " Richard Yao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®