Skip to content

Commit

Permalink
ext4: remove redundant offset check in mext_check_arguments()
Browse files Browse the repository at this point in the history
In the check code above, if orig_start != donor_start, we would
return -EINVAL. So here, orig_start should be equal with donor_start.
Remove the redundant check here.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
  • Loading branch information
Wang Sheng-Hui authored and Theodore Ts'o committed Sep 27, 2012
1 parent c25f9bc commit cbb4ee8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/ext4/move_extent.c
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,6 @@ mext_check_arguments(struct inode *orig_inode,
}

if ((orig_start >= EXT_MAX_BLOCKS) ||
(donor_start >= EXT_MAX_BLOCKS) ||
(*len > EXT_MAX_BLOCKS) ||
(orig_start + *len >= EXT_MAX_BLOCKS)) {
ext4_debug("ext4 move extent: Can't handle over [%u] blocks "
Expand Down

0 comments on commit cbb4ee8

Please sign in to comment.