Searched refs:__within_range (Results 1 – 1 of 1) sorted by relevance
/Linux-v6.6/drivers/md/ |
D | dm-raid.c | 316 static bool __within_range(long v, long min, long max) in __within_range() function 426 return __within_range(rs->md.level, 4, 6); in rs_is_raid456() 474 return __within_range(rt->level, 4, 5); in rt_is_raid45() 486 return __within_range(rt->level, 4, 6); in rt_is_raid456() 1312 if (!__within_range(value, 0, rs->raid_disks - 1)) { in parse_raid_params() 1333 if (!__within_range(value, 0, rs->md.raid_disks - 1)) { in parse_raid_params() 1392 if (!__within_range(abs(value), 1, MAX_RAID_DEVICES - rt->minimal_devs)) { in parse_raid_params() 1450 if (!__within_range(value, 2, rs->md.raid_disks)) { in parse_raid_params() 1743 if (__within_range(mddev->new_level, 4, 6) && in rs_check_takeover() 1781 if (__within_range(mddev->new_level, 4, 5) && in rs_check_takeover() [all …]
|