summaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorManinder Singh <maninder1.s@samsung.com>2017-08-06 01:33:07 -0400
committerTheodore Ts'o <tytso@mit.edu>2017-08-06 01:33:07 -0400
commit4e5620132144666ab41fc2799fbc055830187b7e (patch)
tree92666dbc47b63c8a3345b6e0491e12f6361803de /fs/ext4
parentaec51758ce10a9c847a62a48a168f8c804c6e053 (diff)
downloadop-kernel-dev-4e5620132144666ab41fc2799fbc055830187b7e.zip
op-kernel-dev-4e5620132144666ab41fc2799fbc055830187b7e.tar.gz
ext4: fix copy paste error in ext4_swap_extents()
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>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/extents.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 230ca74..97f0fd0 100644
--- 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 = e1_blk;
+ next2 = e2_blk;
/* Do we have something to swap */
if (next1 == EXT_MAX_BLOCKS || next2 == EXT_MAX_BLOCKS)
goto finish;
OpenPOWER on IntegriCloud