diff options
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; |