Lines Matching refs:map_bh

597 			   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
808 ret = dio_send_cur_page(dio, sdio, map_bh); in submit_page_section()
827 ret = dio_send_cur_page(dio, sdio, map_bh); in submit_page_section()
846 int end, struct buffer_head *map_bh) in dio_zero_block() argument
854 if (!sdio->blkfactor || !buffer_new(map_bh)) in dio_zero_block()
874 sdio->next_block_for_io, map_bh)) in dio_zero_block()
897 struct buffer_head *map_bh) in do_direct_IO() argument
929 ret = get_more_blocks(dio, sdio, map_bh); in do_direct_IO()
934 if (!buffer_mapped(map_bh)) in do_direct_IO()
938 map_bh->b_size >> blkbits; in do_direct_IO()
940 map_bh->b_blocknr << sdio->blkfactor; in do_direct_IO()
941 if (buffer_new(map_bh)) { in do_direct_IO()
943 map_bh->b_bdev, in do_direct_IO()
944 map_bh->b_blocknr, in do_direct_IO()
945 map_bh->b_size >> i_blkbits); in do_direct_IO()
965 if (!buffer_new(map_bh)) in do_direct_IO()
971 if (!buffer_mapped(map_bh)) { in do_direct_IO()
1005 dio_zero_block(dio, sdio, 0, map_bh); in do_direct_IO()
1022 sdio->boundary = buffer_boundary(map_bh); in do_direct_IO()
1027 map_bh); in do_direct_IO()
1112 struct buffer_head map_bh = { 0, }; in __blockdev_direct_IO() local
1242 retval = do_direct_IO(dio, &sdio, &map_bh); in __blockdev_direct_IO()
1257 dio_zero_block(dio, &sdio, 1, &map_bh); in __blockdev_direct_IO()
1262 ret2 = dio_send_cur_page(dio, &sdio, &map_bh); in __blockdev_direct_IO()