Lines Matching refs:holder
544 void *holder) in bd_may_claim() argument
546 if (bdev->bd_holder == holder) in bd_may_claim()
573 int bd_prepare_to_claim(struct block_device *bdev, void *holder) in bd_prepare_to_claim() argument
577 if (WARN_ON_ONCE(!holder)) in bd_prepare_to_claim()
582 if (!bd_may_claim(bdev, whole, holder)) { in bd_prepare_to_claim()
600 whole->bd_claiming = holder; in bd_prepare_to_claim()
606 static void bd_clear_claiming(struct block_device *whole, void *holder) in bd_clear_claiming() argument
610 BUG_ON(whole->bd_claiming != holder); in bd_clear_claiming()
623 static void bd_finish_claiming(struct block_device *bdev, void *holder) in bd_finish_claiming() argument
628 BUG_ON(!bd_may_claim(bdev, whole, holder)); in bd_finish_claiming()
636 bdev->bd_holder = holder; in bd_finish_claiming()
637 bd_clear_claiming(whole, holder); in bd_finish_claiming()
650 void bd_abort_claiming(struct block_device *bdev, void *holder) in bd_abort_claiming() argument
653 bd_clear_claiming(bdev_whole(bdev), holder); in bd_abort_claiming()
786 struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode, void *holder) in blkdev_get_by_dev() argument
806 ret = bd_prepare_to_claim(bdev, holder); in blkdev_get_by_dev()
826 bd_finish_claiming(bdev, holder); in blkdev_get_by_dev()
850 bd_abort_claiming(bdev, holder); in blkdev_get_by_dev()
877 void *holder) in blkdev_get_by_path() argument
887 bdev = blkdev_get_by_dev(dev, mode, holder); in blkdev_get_by_path()