diff options
author | Fan Li <fanofcode.li@samsung.com> | 2016-09-09 23:19:37 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-09-13 16:02:33 -0400 |
commit | 61e4da1172d18f5277be847a40559eacd3169ce7 (patch) | |
tree | 12da5dc45435f139202096397a796a65fdaba9a8 | |
parent | 9512929608891830f4194e1959b667b43d86e619 (diff) |
f2fs: fix parameters of __exchange_data_block
__exchange_data_block should take block indexes as parameters
instead of offsets in bytes.
Signed-off-by: Fan li <fanofcode.li@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r-- | fs/f2fs/file.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index b8a521f6c2d5..40fe72e5147c 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c | |||
@@ -2143,8 +2143,9 @@ static int f2fs_move_file_range(struct file *file_in, loff_t pos_in, | |||
2143 | 2143 | ||
2144 | f2fs_balance_fs(sbi, true); | 2144 | f2fs_balance_fs(sbi, true); |
2145 | f2fs_lock_op(sbi); | 2145 | f2fs_lock_op(sbi); |
2146 | ret = __exchange_data_block(src, dst, pos_in, | 2146 | ret = __exchange_data_block(src, dst, pos_in >> F2FS_BLKSIZE_BITS, |
2147 | pos_out, len >> F2FS_BLKSIZE_BITS, false); | 2147 | pos_out >> F2FS_BLKSIZE_BITS, |
2148 | len >> F2FS_BLKSIZE_BITS, false); | ||
2148 | 2149 | ||
2149 | if (!ret) { | 2150 | if (!ret) { |
2150 | if (dst_max_i_size) | 2151 | if (dst_max_i_size) |