summaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
authorAl Viro2011-12-09 14:06:57 +0100
committerAl Viro2012-01-04 04:52:40 +0100
commit2a79f17e4a641a2f463cb512cb0ec349844a147b (patch)
tree8801127310d0a3492941bb284e83393844a19685 /fs/namespace.c
parentconstify seq_file stuff (diff)
downloadkernel-qcow2-linux-2a79f17e4a641a2f463cb512cb0ec349844a147b.tar.gz
kernel-qcow2-linux-2a79f17e4a641a2f463cb512cb0ec349844a147b.tar.xz
kernel-qcow2-linux-2a79f17e4a641a2f463cb512cb0ec349844a147b.zip
vfs: mnt_drop_write_file()
new helper (wrapper around mnt_drop_write()) to be used in pair with mnt_want_write_file(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 7a8f949cec1b..86b4f6406470 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -392,6 +392,12 @@ void mnt_drop_write(struct vfsmount *mnt)
}
EXPORT_SYMBOL_GPL(mnt_drop_write);
+void mnt_drop_write_file(struct file *file)
+{
+ mnt_drop_write(file->f_path.mnt);
+}
+EXPORT_SYMBOL(mnt_drop_write_file);
+
static int mnt_make_readonly(struct vfsmount *mnt)
{
int ret = 0;