Lines Matching refs:cur
98 struct swap_map_page *cur; member
416 if (handle->cur) in release_swap_writer()
417 free_page((unsigned long)handle->cur); in release_swap_writer()
418 handle->cur = NULL; in release_swap_writer()
431 handle->cur = (struct swap_map_page *)get_zeroed_page(GFP_KERNEL); in get_swap_writer()
432 if (!handle->cur) { in get_swap_writer()
459 if (!handle->cur) in swap_write_page()
465 handle->cur->entries[handle->k++] = offset; in swap_write_page()
470 handle->cur->next_swap = offset; in swap_write_page()
473 error = write_page(handle->cur, handle->cur_swap, hb); in swap_write_page()
477 clear_page(handle->cur); in swap_write_page()
498 if (handle->cur && handle->cur_swap) in flush_swap_writer()
499 return write_page(handle->cur, handle->cur_swap, NULL); in flush_swap_writer()
976 handle->cur = NULL; in release_swap_reader()
991 handle->cur = NULL; in get_swap_reader()
1021 handle->cur = handle->maps->map; in get_swap_reader()
1032 if (!handle->cur) in swap_read_page()
1034 offset = handle->cur->entries[handle->k]; in swap_read_page()
1049 handle->cur = handle->maps->map; in swap_read_page()
1315 if (handle->cur && in load_image_lzo()
1316 handle->cur->entries[handle->k]) { in load_image_lzo()