forked from Minki/linux
ext4: use in_range() for range checking in ext4_fc_replay_check_excluded
Instead of open coding it, use in_range() function instead. Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/8e5526ef14150778871ac7c937c8993c6a09cd3e.1644992610.git.riteshh@linux.ibm.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
parent
8ac3939db9
commit
dbaafbadc5
@ -1875,8 +1875,8 @@ bool ext4_fc_replay_check_excluded(struct super_block *sb, ext4_fsblk_t blk)
|
||||
if (state->fc_regions[i].ino == 0 ||
|
||||
state->fc_regions[i].len == 0)
|
||||
continue;
|
||||
if (blk >= state->fc_regions[i].pblk &&
|
||||
blk < state->fc_regions[i].pblk + state->fc_regions[i].len)
|
||||
if (in_range(blk, state->fc_regions[i].pblk,
|
||||
state->fc_regions[i].len))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user