diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-12-09 08:06:57 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:52:40 -0500 |
commit | 2a79f17e4a641a2f463cb512cb0ec349844a147b (patch) | |
tree | 8801127310d0a3492941bb284e83393844a19685 /fs/namespace.c | |
parent | 8c9379e972e984d11c2b99121847ba9fa7a0c56c (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.c | 6 |
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 | } |
393 | EXPORT_SYMBOL_GPL(mnt_drop_write); | 393 | EXPORT_SYMBOL_GPL(mnt_drop_write); |
394 | 394 | ||
395 | void mnt_drop_write_file(struct file *file) | ||
396 | { | ||
397 | mnt_drop_write(file->f_path.mnt); | ||
398 | } | ||
399 | EXPORT_SYMBOL(mnt_drop_write_file); | ||
400 | |||
395 | static int mnt_make_readonly(struct vfsmount *mnt) | 401 | static int mnt_make_readonly(struct vfsmount *mnt) |
396 | { | 402 | { |
397 | int ret = 0; | 403 | int ret = 0; |