Lines Matching refs:sis
3955 static int check_swap_activate_fast(struct swap_info_struct *sis,
3978 while (cur_lblock <= last_lblock && cur_lblock < sis->max) {
3999 if (cur_lblock + nr_pblocks >= sis->max)
4000 nr_pblocks = sis->max - cur_lblock;
4012 ret = add_swap_extent(sis, cur_lblock, nr_pblocks, pblock);
4022 sis->max = cur_lblock;
4023 sis->pages = cur_lblock - 1;
4024 sis->highest_bit = cur_lblock - 1;
4033 static int check_swap_activate(struct swap_info_struct *sis,
4049 return check_swap_activate_fast(sis, swap_file, span);
4062 page_no < sis->max) {
4111 ret = add_swap_extent(sis, page_no, 1, first_block);
4124 sis->max = page_no;
4125 sis->pages = page_no - 1;
4126 sis->highest_bit = page_no - 1;
4134 static int f2fs_swap_activate(struct swap_info_struct *sis, struct file *file,
4159 ret = check_swap_activate(sis, file, span);
4176 static int f2fs_swap_activate(struct swap_info_struct *sis, struct file *file,