Lines Matching refs:map_bh
621 struct buffer_head *map_bh) in get_more_blocks() argument
644 map_bh->b_state = 0; in get_more_blocks()
645 map_bh->b_size = fs_count << i_blkbits; in get_more_blocks()
666 map_bh, create); in get_more_blocks()
669 dio->private = map_bh->b_private; in get_more_blocks()
671 if (ret == 0 && buffer_defer_completion(map_bh)) in get_more_blocks()
681 sector_t start_sector, struct buffer_head *map_bh) in dio_new_bio() argument
692 dio_bio_alloc(dio, sdio, map_bh->b_bdev, sector, nr_pages); in dio_new_bio()
738 struct buffer_head *map_bh) in dio_send_cur_page() argument
767 ret = dio_new_bio(dio, sdio, sdio->cur_page_block, map_bh); in dio_send_cur_page()
774 ret = dio_new_bio(dio, sdio, sdio->cur_page_block, map_bh); in dio_send_cur_page()
804 struct buffer_head *map_bh) in submit_page_section() argument
832 ret = dio_send_cur_page(dio, sdio, map_bh); in submit_page_section()
851 ret = dio_send_cur_page(dio, sdio, map_bh); in submit_page_section()
870 int end, struct buffer_head *map_bh) in dio_zero_block() argument
878 if (!sdio->blkfactor || !buffer_new(map_bh)) in dio_zero_block()
898 sdio->next_block_for_io, map_bh)) in dio_zero_block()
921 struct buffer_head *map_bh) in do_direct_IO() argument
953 ret = get_more_blocks(dio, sdio, map_bh); in do_direct_IO()
958 if (!buffer_mapped(map_bh)) in do_direct_IO()
962 map_bh->b_size >> blkbits; in do_direct_IO()
964 map_bh->b_blocknr << sdio->blkfactor; in do_direct_IO()
965 if (buffer_new(map_bh)) { in do_direct_IO()
967 map_bh->b_bdev, in do_direct_IO()
968 map_bh->b_blocknr, in do_direct_IO()
969 map_bh->b_size >> i_blkbits); in do_direct_IO()
989 if (!buffer_new(map_bh)) in do_direct_IO()
995 if (!buffer_mapped(map_bh)) { in do_direct_IO()
1029 dio_zero_block(dio, sdio, 0, map_bh); in do_direct_IO()
1046 sdio->boundary = buffer_boundary(map_bh); in do_direct_IO()
1051 map_bh); in do_direct_IO()
1136 struct buffer_head map_bh = { 0, }; in __blockdev_direct_IO() local
1266 retval = do_direct_IO(dio, &sdio, &map_bh); in __blockdev_direct_IO()
1281 dio_zero_block(dio, &sdio, 1, &map_bh); in __blockdev_direct_IO()
1286 ret2 = dio_send_cur_page(dio, &sdio, &map_bh); in __blockdev_direct_IO()