Skip to content

Commit

Permalink
ext4: fix copy paste error in ext4_swap_extents()
Browse files Browse the repository at this point in the history
This bug was found by a static code checker tool for copy paste
problems.

Signed-off-by: Maninder Singh <[email protected]>
Signed-off-by: Vaneet Narang <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
  • Loading branch information
maninder42 authored and tytso committed Aug 6, 2017
1 parent aec5175 commit 4e56201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ext4/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4e56201

Please sign in to comment.