Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cbb4ee83 authored by Wang Sheng-Hui's avatar Wang Sheng-Hui Committed by Theodore Ts'o
Browse files

ext4: remove redundant offset check in mext_check_arguments()



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: default avatarWang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent c25f9bc6
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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 "