Lines Matching refs:blkbits
174 const unsigned blkbits = inode->i_blkbits; in do_mpage_readpage() local
175 const unsigned blocks_per_page = PAGE_CACHE_SIZE >> blkbits; in do_mpage_readpage()
176 const unsigned blocksize = 1 << blkbits; in do_mpage_readpage()
192 block_in_file = (sector_t)page->index << (PAGE_CACHE_SHIFT - blkbits); in do_mpage_readpage()
194 last_block_in_file = (i_size_read(inode) + blocksize - 1) >> blkbits; in do_mpage_readpage()
202 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
232 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage()
264 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
279 zero_user_segment(page, first_hole << blkbits, PAGE_CACHE_SIZE); in do_mpage_readpage()
297 bio = mpage_alloc(bdev, blocks[0] << (blkbits - 9), in do_mpage_readpage()
304 length = first_hole << blkbits; in do_mpage_readpage()
311 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
449 const unsigned blkbits = inode->i_blkbits; in __mpage_writepage() local
451 const unsigned blocks_per_page = PAGE_CACHE_SIZE >> blkbits; in __mpage_writepage()
520 block_in_file = (sector_t)page->index << (PAGE_CACHE_SHIFT - blkbits); in __mpage_writepage()
521 last_block = (i_size - 1) >> blkbits; in __mpage_writepage()
526 map_bh.b_size = 1 << blkbits; in __mpage_writepage()
577 bio = mpage_alloc(bdev, blocks[0] << (blkbits - 9), in __mpage_writepage()
588 length = first_unmapped << blkbits; in __mpage_writepage()
626 boundary_block, 1 << blkbits); in __mpage_writepage()