Lines Matching refs:map_bh

599 			   struct buffer_head *map_bh)  in get_more_blocks()  argument
620 map_bh->b_state = 0; in get_more_blocks()
621 map_bh->b_size = fs_count << i_blkbits; in get_more_blocks()
642 map_bh, create); in get_more_blocks()
645 dio->private = map_bh->b_private; in get_more_blocks()
647 if (ret == 0 && buffer_defer_completion(map_bh)) in get_more_blocks()
657 sector_t start_sector, struct buffer_head *map_bh) in dio_new_bio() argument
668 dio_bio_alloc(dio, sdio, map_bh->b_bdev, sector, nr_pages); in dio_new_bio()
714 struct buffer_head *map_bh) in dio_send_cur_page() argument
743 ret = dio_new_bio(dio, sdio, sdio->cur_page_block, map_bh); in dio_send_cur_page()
750 ret = dio_new_bio(dio, sdio, sdio->cur_page_block, map_bh); in dio_send_cur_page()
780 struct buffer_head *map_bh) in submit_page_section() argument
806 ret = dio_send_cur_page(dio, sdio, map_bh); in submit_page_section()
825 ret = dio_send_cur_page(dio, sdio, map_bh); in submit_page_section()
838 static void clean_blockdev_aliases(struct dio *dio, struct buffer_head *map_bh) in clean_blockdev_aliases() argument
843 nblocks = map_bh->b_size >> dio->inode->i_blkbits; in clean_blockdev_aliases()
846 unmap_underlying_metadata(map_bh->b_bdev, in clean_blockdev_aliases()
847 map_bh->b_blocknr + i); in clean_blockdev_aliases()
861 int end, struct buffer_head *map_bh) in dio_zero_block() argument
869 if (!sdio->blkfactor || !buffer_new(map_bh)) in dio_zero_block()
889 sdio->next_block_for_io, map_bh)) in dio_zero_block()
912 struct buffer_head *map_bh) in do_direct_IO() argument
942 ret = get_more_blocks(dio, sdio, map_bh); in do_direct_IO()
947 if (!buffer_mapped(map_bh)) in do_direct_IO()
951 map_bh->b_size >> sdio->blkbits; in do_direct_IO()
953 map_bh->b_blocknr << sdio->blkfactor; in do_direct_IO()
954 if (buffer_new(map_bh)) in do_direct_IO()
955 clean_blockdev_aliases(dio, map_bh); in do_direct_IO()
974 if (!buffer_new(map_bh)) in do_direct_IO()
980 if (!buffer_mapped(map_bh)) { in do_direct_IO()
1014 dio_zero_block(dio, sdio, 0, map_bh); in do_direct_IO()
1031 sdio->boundary = buffer_boundary(map_bh); in do_direct_IO()
1036 map_bh); in do_direct_IO()
1121 struct buffer_head map_bh = { 0, }; in do_blockdev_direct_IO() local
1255 retval = do_direct_IO(dio, &sdio, &map_bh); in do_blockdev_direct_IO()
1270 dio_zero_block(dio, &sdio, 1, &map_bh); in do_blockdev_direct_IO()
1275 ret2 = dio_send_cur_page(dio, &sdio, &map_bh); in do_blockdev_direct_IO()