diff options
author | Amir Goldstein <amir73il@gmail.com> | 2016-09-23 11:38:11 +0300 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2016-12-16 11:02:54 +0100 |
commit | 031a072a0b8ac2646def77aa310a95016c884bb0 (patch) | |
tree | 26e34c8c636fe13aa0d4e14cf16226333f6f43dd /fs/read_write.c | |
parent | 913b86e92e1f68ab9db00ccb0fecf594732511e5 (diff) | |
download | linux-stable-031a072a0b8ac2646def77aa310a95016c884bb0.tar.gz linux-stable-031a072a0b8ac2646def77aa310a95016c884bb0.tar.bz2 linux-stable-031a072a0b8ac2646def77aa310a95016c884bb0.zip |
vfs: call vfs_clone_file_range() under freeze protection
Move sb_start_write()/sb_end_write() out of the vfs helper and up into the
ioctl handler.
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/read_write.c')
-rw-r--r-- | fs/read_write.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/read_write.c b/fs/read_write.c index 175d30e3b603..c4e206b875d0 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @@ -1687,8 +1687,6 @@ int vfs_clone_file_range(struct file *file_in, loff_t pos_in, if (pos_in + len > i_size_read(inode_in)) return -EINVAL; - sb_start_write(inode_out->i_sb); - ret = file_in->f_op->clone_file_range(file_in, pos_in, file_out, pos_out, len); if (!ret) { @@ -1696,7 +1694,6 @@ int vfs_clone_file_range(struct file *file_in, loff_t pos_in, fsnotify_modify(file_out); } - sb_end_write(inode_out->i_sb); return ret; } EXPORT_SYMBOL(vfs_clone_file_range); |