projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97a7b2c
)
f2fs: fix wrong block address calculation for a split extent
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 18 Jun 2015 21:17:04 +0000
(14:17 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 4 Aug 2015 21:09:54 +0000
(14:09 -0700)
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>
fs/f2fs/data.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/data.c
b/fs/f2fs/data.c
index f71e19a9dd3c18fc6ee7b3bcb4f3da9c8b8c3d4c..d1d86d53d1dc69ef719612d7c90edd21217b7af5 100644
(file)
--- 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);
}
}