Lines Matching refs:nr_pblocks
3968 unsigned long nr_pblocks; in check_swap_activate() local
4006 nr_pblocks = map.m_len; in check_swap_activate()
4009 nr_pblocks & sec_blks_mask) { in check_swap_activate()
4012 nr_pblocks = roundup(nr_pblocks, blks_per_sec); in check_swap_activate()
4013 if (cur_lblock + nr_pblocks > sis->max) in check_swap_activate()
4014 nr_pblocks -= blks_per_sec; in check_swap_activate()
4016 if (!nr_pblocks) { in check_swap_activate()
4018 nr_pblocks = map.m_len; in check_swap_activate()
4024 nr_pblocks); in check_swap_activate()
4030 if (cur_lblock + nr_pblocks >= sis->max) in check_swap_activate()
4031 nr_pblocks = sis->max - cur_lblock; in check_swap_activate()
4036 if (pblock + nr_pblocks - 1 > highest_pblock) in check_swap_activate()
4037 highest_pblock = pblock + nr_pblocks - 1; in check_swap_activate()
4043 ret = add_swap_extent(sis, cur_lblock, nr_pblocks, pblock); in check_swap_activate()
4047 cur_lblock += nr_pblocks; in check_swap_activate()