Lines Matching refs:blkbits
196 const unsigned blkbits = inode->i_blkbits; in do_mpage_readpage() local
197 const unsigned blocks_per_page = PAGE_SIZE >> blkbits; in do_mpage_readpage()
198 const unsigned blocksize = 1 << blkbits; in do_mpage_readpage()
225 block_in_file = (sector_t)page->index << (PAGE_SHIFT - blkbits); in do_mpage_readpage()
227 last_block_in_file = (i_size_read(inode) + blocksize - 1) >> blkbits; in do_mpage_readpage()
235 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
266 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage()
298 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
313 zero_user_segment(page, first_hole << blkbits, PAGE_SIZE); in do_mpage_readpage()
338 if (!bdev_read_page(bdev, blocks[0] << (blkbits - 9), in do_mpage_readpage()
342 args->bio = mpage_alloc(bdev, blocks[0] << (blkbits - 9), in do_mpage_readpage()
350 length = first_hole << blkbits; in do_mpage_readpage()
357 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
539 const unsigned blkbits = inode->i_blkbits; in __mpage_writepage() local
541 const unsigned blocks_per_page = PAGE_SIZE >> blkbits; in __mpage_writepage()
611 block_in_file = (sector_t)page->index << (PAGE_SHIFT - blkbits); in __mpage_writepage()
612 last_block = (i_size - 1) >> blkbits; in __mpage_writepage()
617 map_bh.b_size = 1 << blkbits; in __mpage_writepage()
668 if (!bdev_write_page(bdev, blocks[0] << (blkbits - 9), in __mpage_writepage()
672 bio = mpage_alloc(bdev, blocks[0] << (blkbits - 9), in __mpage_writepage()
687 length = first_unmapped << blkbits; in __mpage_writepage()
702 boundary_block, 1 << blkbits); in __mpage_writepage()