Lines Matching refs:map_bh

604 			   struct buffer_head *map_bh)  in get_more_blocks()  argument
627 map_bh->b_state = 0; in get_more_blocks()
628 map_bh->b_size = fs_count << i_blkbits; in get_more_blocks()
649 map_bh, create); in get_more_blocks()
652 dio->private = map_bh->b_private; in get_more_blocks()
654 if (ret == 0 && buffer_defer_completion(map_bh)) in get_more_blocks()
664 sector_t start_sector, struct buffer_head *map_bh) in dio_new_bio() argument
675 dio_bio_alloc(dio, sdio, map_bh->b_bdev, sector, nr_pages); in dio_new_bio()
721 struct buffer_head *map_bh) in dio_send_cur_page() argument
750 ret = dio_new_bio(dio, sdio, sdio->cur_page_block, map_bh); in dio_send_cur_page()
757 ret = dio_new_bio(dio, sdio, sdio->cur_page_block, map_bh); in dio_send_cur_page()
787 struct buffer_head *map_bh) in submit_page_section() argument
815 ret = dio_send_cur_page(dio, sdio, map_bh); in submit_page_section()
834 ret = dio_send_cur_page(dio, sdio, map_bh); in submit_page_section()
853 int end, struct buffer_head *map_bh) in dio_zero_block() argument
861 if (!sdio->blkfactor || !buffer_new(map_bh)) in dio_zero_block()
881 sdio->next_block_for_io, map_bh)) in dio_zero_block()
904 struct buffer_head *map_bh) in do_direct_IO() argument
936 ret = get_more_blocks(dio, sdio, map_bh); in do_direct_IO()
941 if (!buffer_mapped(map_bh)) in do_direct_IO()
945 map_bh->b_size >> blkbits; in do_direct_IO()
947 map_bh->b_blocknr << sdio->blkfactor; in do_direct_IO()
948 if (buffer_new(map_bh)) { in do_direct_IO()
950 map_bh->b_bdev, in do_direct_IO()
951 map_bh->b_blocknr, in do_direct_IO()
952 map_bh->b_size >> i_blkbits); in do_direct_IO()
972 if (!buffer_new(map_bh)) in do_direct_IO()
978 if (!buffer_mapped(map_bh)) { in do_direct_IO()
1012 dio_zero_block(dio, sdio, 0, map_bh); in do_direct_IO()
1029 sdio->boundary = buffer_boundary(map_bh); in do_direct_IO()
1034 map_bh); in do_direct_IO()
1119 struct buffer_head map_bh = { 0, }; in __blockdev_direct_IO() local
1243 retval = do_direct_IO(dio, &sdio, &map_bh); in __blockdev_direct_IO()
1258 dio_zero_block(dio, &sdio, 1, &map_bh); in __blockdev_direct_IO()
1263 ret2 = dio_send_cur_page(dio, &sdio, &map_bh); in __blockdev_direct_IO()