Lines Matching refs:hr_bdev
216 struct block_device *hr_bdev; member
530 bio_set_dev(bio, reg->hr_bdev); in o2hb_setup_one_bio()
1512 if (reg->hr_bdev) in o2hb_region_release()
1513 blkdev_put(reg->hr_bdev, FMODE_READ|FMODE_WRITE); in o2hb_region_release()
1572 if (reg->hr_bdev) in o2hb_region_block_bytes_store()
1601 if (reg->hr_bdev) in o2hb_region_start_block_store()
1626 if (reg->hr_bdev) in o2hb_region_blocks_store()
1645 if (to_o2hb_region(item)->hr_bdev) in o2hb_region_dev_show()
1769 if (reg->hr_bdev) in o2hb_region_dev_store()
1795 reg->hr_bdev = blkdev_get_by_dev(f.file->f_mapping->host->i_rdev, in o2hb_region_dev_store()
1797 if (IS_ERR(reg->hr_bdev)) { in o2hb_region_dev_store()
1798 ret = PTR_ERR(reg->hr_bdev); in o2hb_region_dev_store()
1799 reg->hr_bdev = NULL; in o2hb_region_dev_store()
1803 bdevname(reg->hr_bdev, reg->hr_dev_name); in o2hb_region_dev_store()
1805 sectsize = bdev_logical_block_size(reg->hr_bdev); in o2hb_region_dev_store()
1905 blkdev_put(reg->hr_bdev, FMODE_READ | FMODE_WRITE); in o2hb_region_dev_store()
1906 reg->hr_bdev = NULL; in o2hb_region_dev_store()