projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aec5175
)
ext4: fix copy paste error in ext4_swap_extents()
author
Maninder Singh
<maninder1.s@samsung.com>
Sun, 6 Aug 2017 05:33:07 +0000
(
01:33
-0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Sun, 6 Aug 2017 05:33:07 +0000
(
01:33
-0400)
This bug was found by a static code checker tool for copy paste
problems.
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Signed-off-by: Vaneet Narang <v.narang@samsung.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c
patch
|
blob
|
history
diff --git
a/fs/ext4/extents.c
b/fs/ext4/extents.c
index 230ca74c48415a3afeebdbf98d27e9fdd241b1eb..97f0fd06728d7bb18bb05637db169cfeb91f9bcf 100644
(file)
--- a/
fs/ext4/extents.c
+++ b/
fs/ext4/extents.c
@@
-5836,7
+5836,7
@@
ext4_swap_extents(handle_t *handle, struct inode *inode1,
if (e1_blk > lblk1)
next1 = e1_blk;
if (e2_blk > lblk2)
- next2 = e
1
_blk;
+ next2 = e
2
_blk;
/* Do we have something to swap */
if (next1 == EXT_MAX_BLOCKS || next2 == EXT_MAX_BLOCKS)
goto finish;