diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2018-07-06 17:57:03 -0400 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2018-07-06 17:57:03 -0400 |
commit | 5740c99e9d30b81fcc478797e7215c61e241f44e (patch) | |
tree | bb10f2f28245c18457980e307348492ea7d69602 /fs/ocfs2/file.c | |
parent | 92b66d2cdd7a4f6f6aa31be5f16a3f0c88902690 (diff) |
vfs: dedupe: return int
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/ocfs2/file.c')
-rw-r--r-- | fs/ocfs2/file.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 255f758af03a..f96f018463f7 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c | |||
@@ -2537,19 +2537,14 @@ static int ocfs2_file_clone_range(struct file *file_in, | |||
2537 | len, false); | 2537 | len, false); |
2538 | } | 2538 | } |
2539 | 2539 | ||
2540 | static ssize_t ocfs2_file_dedupe_range(struct file *src_file, | 2540 | static int ocfs2_file_dedupe_range(struct file *src_file, |
2541 | u64 loff, | 2541 | u64 loff, |
2542 | u64 len, | 2542 | u64 len, |
2543 | struct file *dst_file, | 2543 | struct file *dst_file, |
2544 | u64 dst_loff) | 2544 | u64 dst_loff) |
2545 | { | 2545 | { |
2546 | int error; | 2546 | return ocfs2_reflink_remap_range(src_file, loff, dst_file, dst_loff, |
2547 | |||
2548 | error = ocfs2_reflink_remap_range(src_file, loff, dst_file, dst_loff, | ||
2549 | len, true); | 2547 | len, true); |
2550 | if (error) | ||
2551 | return error; | ||
2552 | return len; | ||
2553 | } | 2548 | } |
2554 | 2549 | ||
2555 | const struct inode_operations ocfs2_file_iops = { | 2550 | const struct inode_operations ocfs2_file_iops = { |