Lines Matching refs:bh

169 		bh_end_io_t *bh;  member
340 struct buffer_head *bh,
347 static void btrfsic_bh_end_io(struct buffer_head *bh, int uptodate);
801 struct buffer_head *bh; in btrfsic_process_superblock_dev_mirror() local
810 bh = __bread(superblock_bdev, dev_bytenr / 4096, in btrfsic_process_superblock_dev_mirror()
812 if (NULL == bh) in btrfsic_process_superblock_dev_mirror()
815 (bh->b_data + (dev_bytenr & 4095)); in btrfsic_process_superblock_dev_mirror()
822 brelse(bh); in btrfsic_process_superblock_dev_mirror()
834 brelse(bh); in btrfsic_process_superblock_dev_mirror()
921 brelse(bh); in btrfsic_process_superblock_dev_mirror()
931 brelse(bh); in btrfsic_process_superblock_dev_mirror()
943 brelse(bh); in btrfsic_process_superblock_dev_mirror()
951 brelse(bh); in btrfsic_process_superblock_dev_mirror()
1822 struct buffer_head *bh, in btrfsic_process_written_block() argument
2025 } else if (NULL != bh) { in btrfsic_process_written_block()
2027 block->orig_bio_bh_private = bh->b_private; in btrfsic_process_written_block()
2028 block->orig_bio_bh_end_io.bh = bh->b_end_io; in btrfsic_process_written_block()
2030 bh->b_private = block; in btrfsic_process_written_block()
2031 bh->b_end_io = btrfsic_bh_end_io; in btrfsic_process_written_block()
2168 } else if (NULL != bh) { in btrfsic_process_written_block()
2170 block->orig_bio_bh_private = bh->b_private; in btrfsic_process_written_block()
2171 block->orig_bio_bh_end_io.bh = bh->b_end_io; in btrfsic_process_written_block()
2173 bh->b_private = block; in btrfsic_process_written_block()
2174 bh->b_end_io = btrfsic_bh_end_io; in btrfsic_process_written_block()
2258 static void btrfsic_bh_end_io(struct buffer_head *bh, int uptodate) in btrfsic_bh_end_io() argument
2260 struct btrfsic_block *block = (struct btrfsic_block *)bh->b_private; in btrfsic_bh_end_io()
2286 bh->b_private = block->orig_bio_bh_private; in btrfsic_bh_end_io()
2287 bh->b_end_io = block->orig_bio_bh_end_io.bh; in btrfsic_bh_end_io()
2289 bh->b_end_io(bh, uptodate); in btrfsic_bh_end_io()
2900 int btrfsic_submit_bh(int rw, struct buffer_head *bh) in btrfsic_submit_bh() argument
2905 return submit_bh(rw, bh); in btrfsic_submit_bh()
2910 dev_state = btrfsic_dev_state_lookup(bh->b_bdev); in btrfsic_submit_bh()
2914 (rw & WRITE) && bh->b_size > 0) { in btrfsic_submit_bh()
2917 dev_bytenr = 4096 * bh->b_blocknr; in btrfsic_submit_bh()
2923 rw, (unsigned long long)bh->b_blocknr, in btrfsic_submit_bh()
2924 dev_bytenr, bh->b_size, bh->b_data, bh->b_bdev); in btrfsic_submit_bh()
2926 &bh->b_data, 1, NULL, in btrfsic_submit_bh()
2927 NULL, bh, rw); in btrfsic_submit_bh()
2933 rw, bh->b_bdev); in btrfsic_submit_bh()
2952 block->orig_bio_bh_private = bh->b_private; in btrfsic_submit_bh()
2953 block->orig_bio_bh_end_io.bh = bh->b_end_io; in btrfsic_submit_bh()
2955 bh->b_private = block; in btrfsic_submit_bh()
2956 bh->b_end_io = btrfsic_bh_end_io; in btrfsic_submit_bh()
2960 return submit_bh(rw, bh); in btrfsic_submit_bh()