Lines Matching refs:cur_lblock
3862 sector_t cur_lblock; in check_swap_activate() local
3878 cur_lblock = 0; in check_swap_activate()
3881 while (cur_lblock < last_lblock && cur_lblock < sis->max) { in check_swap_activate()
3887 map.m_lblk = cur_lblock; in check_swap_activate()
3888 map.m_len = last_lblock - cur_lblock; in check_swap_activate()
3913 if (cur_lblock + nr_pblocks > sis->max) in check_swap_activate()
3923 ret = f2fs_migrate_blocks(inode, cur_lblock, in check_swap_activate()
3930 if (cur_lblock + nr_pblocks >= sis->max) in check_swap_activate()
3931 nr_pblocks = sis->max - cur_lblock; in check_swap_activate()
3933 if (cur_lblock) { /* exclude the header page */ in check_swap_activate()
3943 ret = add_swap_extent(sis, cur_lblock, nr_pblocks, pblock); in check_swap_activate()
3947 cur_lblock += nr_pblocks; in check_swap_activate()
3951 if (cur_lblock == 0) in check_swap_activate()
3952 cur_lblock = 1; /* force Empty message */ in check_swap_activate()
3953 sis->max = cur_lblock; in check_swap_activate()
3954 sis->pages = cur_lblock - 1; in check_swap_activate()
3955 sis->highest_bit = cur_lblock - 1; in check_swap_activate()