Searched refs:blocks_per_page (Results 1 – 6 of 6) sorted by relevance
197 const unsigned blocks_per_page = PAGE_SIZE >> blkbits; in do_mpage_readpage() local205 unsigned first_hole = blocks_per_page; in do_mpage_readpage()226 last_block = block_in_file + args->nr_pages * blocks_per_page; in do_mpage_readpage()247 if (page_block == blocks_per_page) in do_mpage_readpage()261 while (page_block < blocks_per_page) { in do_mpage_readpage()274 if (first_hole == blocks_per_page) in do_mpage_readpage()292 if (first_hole != blocks_per_page) in do_mpage_readpage()303 } else if (page_block == blocks_per_page) in do_mpage_readpage()312 if (first_hole != blocks_per_page) { in do_mpage_readpage()323 if (fully_mapped && blocks_per_page == 1 && !PageUptodate(page) && in do_mpage_readpage()[all …]
260 const unsigned blocks_per_page = PAGE_SIZE >> blkbits; in ext4_mpage_readpages() local280 unsigned first_hole = blocks_per_page; in ext4_mpage_readpages()297 last_block = block_in_file + nr_pages * blocks_per_page; in ext4_mpage_readpages()319 if (page_block == blocks_per_page) in ext4_mpage_readpages()332 while (page_block < blocks_per_page) { in ext4_mpage_readpages()348 if (first_hole == blocks_per_page) in ext4_mpage_readpages()354 if (first_hole != blocks_per_page) in ext4_mpage_readpages()365 } else if (page_block == blocks_per_page) in ext4_mpage_readpages()372 if (first_hole != blocks_per_page) { in ext4_mpage_readpages()386 if (fully_mapped && blocks_per_page == 1 && in ext4_mpage_readpages()[all …]
261 int blocks_per_page = PAGE_SIZE >> orig_inode->i_blkbits; in move_extent_per_page() local278 orig_blk_offset = orig_page_offset * blocks_per_page + in move_extent_per_page()281 donor_blk_offset = donor_page_offset * blocks_per_page + in move_extent_per_page()559 int blocks_per_page = PAGE_SIZE >> orig_inode->i_blkbits; in ext4_move_extents() local661 offset_in_page = o_start % blocks_per_page; in ext4_move_extents()662 if (cur_len > blocks_per_page- offset_in_page) in ext4_move_extents()663 cur_len = blocks_per_page - offset_in_page; in ext4_move_extents()
809 int blocks_per_page; in ext4_mb_init_cache() local829 blocks_per_page = PAGE_SIZE / blocksize; in ext4_mb_init_cache()831 groups_per_page = blocks_per_page >> 1; in ext4_mb_init_cache()846 first_group = page->index * blocks_per_page / 2; in ext4_mb_init_cache()884 first_block = page->index * blocks_per_page; in ext4_mb_init_cache()885 for (i = 0; i < blocks_per_page; i++) { in ext4_mb_init_cache()977 int blocks_per_page; in ext4_mb_get_buddy_page_lock() local983 blocks_per_page = PAGE_SIZE / sb->s_blocksize; in ext4_mb_get_buddy_page_lock()990 pnum = block / blocks_per_page; in ext4_mb_get_buddy_page_lock()991 poff = block % blocks_per_page; in ext4_mb_get_buddy_page_lock()[all …]
476 int blocks_per_page = PAGE_SIZE >> inode->i_blkbits; in metapage_readpage() local488 while (block_offset < blocks_per_page) { in metapage_readpage()489 xlen = blocks_per_page - block_offset; in metapage_readpage()
3246 unsigned blocks_per_page; in check_swap_activate() local3255 blocks_per_page = PAGE_SIZE >> blkbits; in check_swap_activate()3264 while ((probe_block + blocks_per_page) <= last_block && page_no < max) { in check_swap_activate()3277 if (first_block & (blocks_per_page - 1)) { in check_swap_activate()3282 for (block_in_page = 1; block_in_page < blocks_per_page; in check_swap_activate()3305 probe_block += blocks_per_page; in check_swap_activate()