]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/open.c
[PATCH] r/o bind mounts: make access() use new r/o helper
authorDave Hansen <haveblue@us.ibm.com>
Fri, 15 Feb 2008 22:37:55 +0000 (14:37 -0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 19 Apr 2008 04:29:26 +0000 (00:29 -0400)
commit2f676cbc0d60ae806216c7a61c6971bd72dedde8
tree57287366150093260f18bdbe81596492e3e40aa1
parent9ac9b8474c39c3ae2c2b37d8e1f08db8a9146124
[PATCH] r/o bind mounts: make access() use new r/o helper

It is OK to let access() go without using a mnt_want/drop_write() pair because
it doesn't actually do writes to the filesystem, and it is inherently racy
anyway.  This is a rare case when it is OK to use __mnt_is_readonly()
directly.

Acked-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/open.c