From: Richard Yao <ryao@gentoo.org>
To: viro@zeniv.linux.org.uk
Cc: kernel@gentoo.org, mthode@mthode.org, michael@fds-team.de,
drobbins@funtoo.org, linux-fsdevel@vger.kernel.org,
linux-kernel@vger.kernel.org, Richard Yao <ryao@gentoo.org>
Subject: [PATCH v4 0/1] vfs: Respect MS_RDONLY at bind mount creation
Date: Mon, 29 Sep 2014 20:34:40 -0400 [thread overview]
Message-ID: <1412037281-25960-1-git-send-email-ryao@gentoo.org> (raw)
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
next reply other threads:[~2014-09-30 0:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-30 0:34 Richard Yao [this message]
2014-09-30 0:34 ` [PATCH] vfs: Respect MS_RDONLY at bind mount creation Richard Yao
-- strict thread matches above, loose matches on Subject: below --
2014-10-27 18:43 [PATCH v4 0/1] " Richard Yao
2014-11-06 1:44 Richard Yao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1412037281-25960-1-git-send-email-ryao@gentoo.org \
--to=ryao@gentoo.org \
--cc=drobbins@funtoo.org \
--cc=kernel@gentoo.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael@fds-team.de \
--cc=mthode@mthode.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox