diff options
| author | Fan Li <fanofcode.li@samsung.com> | 2016-09-10 11:19:37 +0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:34:05 +0200 |
| commit | b0a60a1a2061430e6c0cdb6057e02c9cbbd21575 (patch) | |
| tree | cb28a80aa4df96bd250b68539970b1b4e9648d33 | |
| parent | 872023a18f17407014443cfce286bb511ab50d34 (diff) | |
| download | android_kernel_m2note-b0a60a1a2061430e6c0cdb6057e02c9cbbd21575.tar.gz | |
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 639ab0793..63ab819fe 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -2168,8 +2168,9 @@ static int f2fs_move_file_range(struct file *file_in, loff_t pos_in, f2fs_balance_fs(sbi, true); f2fs_lock_op(sbi); - ret = __exchange_data_block(src, dst, pos_in, - pos_out, len >> F2FS_BLKSIZE_BITS, false); + ret = __exchange_data_block(src, dst, pos_in >> F2FS_BLKSIZE_BITS, + pos_out >> F2FS_BLKSIZE_BITS, + len >> F2FS_BLKSIZE_BITS, false); if (!ret) { if (dst_max_i_size) |
