aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
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;