Lines Matching refs:holder
466 void *holder) in bd_may_claim() argument
468 if (bdev->bd_holder == holder) in bd_may_claim()
495 int bd_prepare_to_claim(struct block_device *bdev, void *holder) in bd_prepare_to_claim() argument
499 if (WARN_ON_ONCE(!holder)) in bd_prepare_to_claim()
504 if (!bd_may_claim(bdev, whole, holder)) { in bd_prepare_to_claim()
522 whole->bd_claiming = holder; in bd_prepare_to_claim()
528 static void bd_clear_claiming(struct block_device *whole, void *holder) in bd_clear_claiming() argument
532 BUG_ON(whole->bd_claiming != holder); in bd_clear_claiming()
545 static void bd_finish_claiming(struct block_device *bdev, void *holder) in bd_finish_claiming() argument
550 BUG_ON(!bd_may_claim(bdev, whole, holder)); in bd_finish_claiming()
558 bdev->bd_holder = holder; in bd_finish_claiming()
559 bd_clear_claiming(whole, holder); in bd_finish_claiming()
572 void bd_abort_claiming(struct block_device *bdev, void *holder) in bd_abort_claiming() argument
575 bd_clear_claiming(bdev_whole(bdev), holder); in bd_abort_claiming()
708 struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode, void *holder) in blkdev_get_by_dev() argument
728 ret = bd_prepare_to_claim(bdev, holder); in blkdev_get_by_dev()
748 bd_finish_claiming(bdev, holder); in blkdev_get_by_dev()
772 bd_abort_claiming(bdev, holder); in blkdev_get_by_dev()
799 void *holder) in blkdev_get_by_path() argument
809 bdev = blkdev_get_by_dev(dev, mode, holder); in blkdev_get_by_path()