Commit 4e562013 authored by Maninder Singh's avatar Maninder Singh Committed by Theodore Ts'o

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: default avatarManinder Singh <maninder1.s@samsung.com>
Signed-off-by: default avatarVaneet Narang <v.narang@samsung.com>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent aec51758
...@@ -5836,7 +5836,7 @@ ext4_swap_extents(handle_t *handle, struct inode *inode1, ...@@ -5836,7 +5836,7 @@ ext4_swap_extents(handle_t *handle, struct inode *inode1,
if (e1_blk > lblk1) if (e1_blk > lblk1)
next1 = e1_blk; next1 = e1_blk;
if (e2_blk > lblk2) if (e2_blk > lblk2)
next2 = e1_blk; next2 = e2_blk;
/* Do we have something to swap */ /* Do we have something to swap */
if (next1 == EXT_MAX_BLOCKS || next2 == EXT_MAX_BLOCKS) if (next1 == EXT_MAX_BLOCKS || next2 == EXT_MAX_BLOCKS)
goto finish; goto finish;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment