Lines Matching refs:nr_blocks
140 sector_t nr_blocks; in discard_swap() local
146 nr_blocks = ((sector_t)se->nr_pages - 1) << (PAGE_SHIFT - 9); in discard_swap()
147 if (nr_blocks) { in discard_swap()
149 nr_blocks, GFP_KERNEL, 0); in discard_swap()
157 nr_blocks = (sector_t)se->nr_pages << (PAGE_SHIFT - 9); in discard_swap()
160 nr_blocks, GFP_KERNEL, 0); in discard_swap()
184 sector_t nr_blocks = se->nr_pages - offset; in discard_swap_cluster() local
186 if (nr_blocks > nr_pages) in discard_swap_cluster()
187 nr_blocks = nr_pages; in discard_swap_cluster()
188 start_page += nr_blocks; in discard_swap_cluster()
189 nr_pages -= nr_blocks; in discard_swap_cluster()
195 nr_blocks <<= PAGE_SHIFT - 9; in discard_swap_cluster()
197 nr_blocks, GFP_NOIO, 0)) in discard_swap_cluster()