diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-06-18 14:17:04 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-08-04 14:09:54 -0700 |
commit | 7a2cb67867b9a7f28a7c4d0fadd2f337a6d46ff7 (patch) | |
tree | a4d352b9d3f6a5406b239242b37a5bf26a8f49b0 /fs/f2fs | |
parent | 97a7b2c274d5dbe51170e099c16d49cfd1b467af (diff) | |
download | linux-stable-7a2cb67867b9a7f28a7c4d0fadd2f337a6d46ff7.tar.gz linux-stable-7a2cb67867b9a7f28a7c4d0fadd2f337a6d46ff7.tar.bz2 linux-stable-7a2cb67867b9a7f28a7c4d0fadd2f337a6d46ff7.zip |
f2fs: fix wrong block address calculation for a split extent
This patch fixes wrong calculation on block address field when an extent is
split.
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index f71e19a9dd3c..d1d86d53d1dc 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -674,7 +674,7 @@ static void f2fs_update_extent_tree(struct inode *inode, pgoff_t fofs, endofs = dei.fofs + dei.len - 1; if (endofs - fofs >= F2FS_MIN_EXTENT_LEN) { set_extent_info(&ei, fofs + 1, - fofs - dei.fofs + dei.blk, endofs - fofs); + fofs - dei.fofs + dei.blk + 1, endofs - fofs); en2 = __insert_extent_tree(sbi, et, &ei, NULL); } } |