Lines Matching refs:nr_pages
181 nr_blocks = ((sector_t)se->nr_pages - 1) << (PAGE_SHIFT - 9); in discard_swap()
192 nr_blocks = (sector_t)se->nr_pages << (PAGE_SHIFT - 9); in discard_swap()
215 else if (offset >= se->start_page + se->nr_pages) in offset_to_swap_extent()
229 pgoff_t start_page, pgoff_t nr_pages) in discard_swap_cluster() argument
233 while (nr_pages) { in discard_swap_cluster()
236 sector_t nr_blocks = se->nr_pages - offset; in discard_swap_cluster()
238 if (nr_blocks > nr_pages) in discard_swap_cluster()
239 nr_blocks = nr_pages; in discard_swap_cluster()
241 nr_pages -= nr_blocks; in discard_swap_cluster()
2312 unsigned long nr_pages, sector_t start_block) in add_swap_extent() argument
2329 BUG_ON(se->start_page + se->nr_pages != start_page); in add_swap_extent()
2330 if (se->start_block + se->nr_pages == start_block) { in add_swap_extent()
2332 se->nr_pages += nr_pages; in add_swap_extent()
2342 new_se->nr_pages = nr_pages; in add_swap_extent()