aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-12-09 08:06:57 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-03 22:52:40 -0500
commit2a79f17e4a641a2f463cb512cb0ec349844a147b (patch)
tree8801127310d0a3492941bb284e83393844a19685 /fs/namespace.c
parent8c9379e972e984d11c2b99121847ba9fa7a0c56c (diff)
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)
392} 392}
393EXPORT_SYMBOL_GPL(mnt_drop_write); 393EXPORT_SYMBOL_GPL(mnt_drop_write);
394 394
395void mnt_drop_write_file(struct file *file)
396{
397 mnt_drop_write(file->f_path.mnt);
398}
399EXPORT_SYMBOL(mnt_drop_write_file);
400
395static int mnt_make_readonly(struct vfsmount *mnt) 401static int mnt_make_readonly(struct vfsmount *mnt)
396{ 402{
397 int ret = 0; 403 int ret = 0;