Lines Matching refs:hr_bdev
216 struct block_device *hr_bdev; member
521 bio = bio_alloc(reg->hr_bdev, 16, op | op_flags, GFP_ATOMIC); in o2hb_setup_one_bio()
1510 if (reg->hr_bdev) in o2hb_region_release()
1511 blkdev_put(reg->hr_bdev, FMODE_READ|FMODE_WRITE); in o2hb_region_release()
1570 if (reg->hr_bdev) in o2hb_region_block_bytes_store()
1599 if (reg->hr_bdev) in o2hb_region_start_block_store()
1624 if (reg->hr_bdev) in o2hb_region_blocks_store()
1643 if (to_o2hb_region(item)->hr_bdev) in o2hb_region_dev_show()
1767 if (reg->hr_bdev) in o2hb_region_dev_store()
1793 reg->hr_bdev = blkdev_get_by_dev(f.file->f_mapping->host->i_rdev, in o2hb_region_dev_store()
1795 if (IS_ERR(reg->hr_bdev)) { in o2hb_region_dev_store()
1796 ret = PTR_ERR(reg->hr_bdev); in o2hb_region_dev_store()
1797 reg->hr_bdev = NULL; in o2hb_region_dev_store()
1801 bdevname(reg->hr_bdev, reg->hr_dev_name); in o2hb_region_dev_store()
1803 sectsize = bdev_logical_block_size(reg->hr_bdev); in o2hb_region_dev_store()
1903 blkdev_put(reg->hr_bdev, FMODE_READ | FMODE_WRITE); in o2hb_region_dev_store()
1904 reg->hr_bdev = NULL; in o2hb_region_dev_store()