diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2018-07-18 16:44:40 +0300 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2018-07-18 16:44:40 +0300 |
commit | f182536684d876afaf4627c36a16c4e15ea8a2b8 (patch) | |
tree | 649bd1e970d15b787d1121f1063e496cd20eac36 /fs/read_write.c | |
parent | 9df6702ad0e85901450fe48a7b5f0f8975353eeb (diff) | |
download | linux-f182536684d876afaf4627c36a16c4e15ea8a2b8.tar.xz |
vfs: export vfs_dedupe_file_range_one() to modules
This is needed by the stacked dedupe implementation in overlayfs.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/read_write.c')
-rw-r--r-- | fs/read_write.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/read_write.c b/fs/read_write.c index cce4ebac34a8..39b4a21dd933 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @@ -1964,9 +1964,8 @@ out_error: } EXPORT_SYMBOL(vfs_dedupe_file_range_compare); -static int vfs_dedupe_file_range_one(struct file *src_file, loff_t src_pos, - struct file *dst_file, loff_t dst_pos, - u64 len) +int vfs_dedupe_file_range_one(struct file *src_file, loff_t src_pos, + struct file *dst_file, loff_t dst_pos, u64 len) { s64 ret; @@ -2001,6 +2000,7 @@ out_drop_write: return ret; } +EXPORT_SYMBOL(vfs_dedupe_file_range_one); int vfs_dedupe_file_range(struct file *file, struct file_dedupe_range *same) { |