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/ioctl.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/ioctl.c')
-rw-r--r-- | fs/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ioctl.c b/fs/ioctl.c index 6715b7208835..cb9b02940805 100644 --- a/fs/ioctl.c +++ b/fs/ioctl.c @@ -226,7 +226,7 @@ static long ioctl_file_clone(struct file *dst_file, unsigned long srcfd, ret = -EXDEV; if (src_file.file->f_path.mnt != dst_file->f_path.mnt) goto fdput; - ret = vfs_clone_file_range(src_file.file, off, dst_file, destoff, olen); + ret = do_clone_file_range(src_file.file, off, dst_file, destoff, olen); fdput: fdput(src_file); return ret; |