Searched refs:__within_range (Results 1 – 1 of 1) sorted by relevance
/linux-6.1.9/drivers/md/ |
D | dm-raid.c | 315 static bool __within_range(long v, long min, long max) in __within_range() function 425 return __within_range(rs->md.level, 4, 6); in rs_is_raid456() 473 return __within_range(rt->level, 4, 5); in rt_is_raid45() 485 return __within_range(rt->level, 4, 6); in rt_is_raid456() 1311 if (!__within_range(value, 0, rs->raid_disks - 1)) { in parse_raid_params() 1332 if (!__within_range(value, 0, rs->md.raid_disks - 1)) { in parse_raid_params() 1391 if (!__within_range(abs(value), 1, MAX_RAID_DEVICES - rt->minimal_devs)) { in parse_raid_params() 1449 if (!__within_range(value, 2, rs->md.raid_disks)) { in parse_raid_params() 1742 if (__within_range(mddev->new_level, 4, 6) && in rs_check_takeover() 1780 if (__within_range(mddev->new_level, 4, 5) && in rs_check_takeover() [all …]
|