Skip to content

Commit 4e56201

Browse files
maninder42tytso
authored andcommitted
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>
1 parent aec5175 commit 4e56201

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ext4/extents.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5836,7 +5836,7 @@ ext4_swap_extents(handle_t *handle, struct inode *inode1,
58365836
if (e1_blk > lblk1)
58375837
next1 = e1_blk;
58385838
if (e2_blk > lblk2)
5839-
next2 = e1_blk;
5839+
next2 = e2_blk;
58405840
/* Do we have something to swap */
58415841
if (next1 == EXT_MAX_BLOCKS || next2 == EXT_MAX_BLOCKS)
58425842
goto finish;

0 commit comments

Comments
 (0)