Lines Matching refs:holder
540 void *holder) in bd_may_claim() argument
542 if (bdev->bd_holder == holder) in bd_may_claim()
569 int bd_prepare_to_claim(struct block_device *bdev, void *holder) in bd_prepare_to_claim() argument
573 if (WARN_ON_ONCE(!holder)) in bd_prepare_to_claim()
578 if (!bd_may_claim(bdev, whole, holder)) { in bd_prepare_to_claim()
596 whole->bd_claiming = holder; in bd_prepare_to_claim()
602 static void bd_clear_claiming(struct block_device *whole, void *holder) in bd_clear_claiming() argument
606 BUG_ON(whole->bd_claiming != holder); in bd_clear_claiming()
619 static void bd_finish_claiming(struct block_device *bdev, void *holder) in bd_finish_claiming() argument
624 BUG_ON(!bd_may_claim(bdev, whole, holder)); in bd_finish_claiming()
632 bdev->bd_holder = holder; in bd_finish_claiming()
633 bd_clear_claiming(whole, holder); in bd_finish_claiming()
646 void bd_abort_claiming(struct block_device *bdev, void *holder) in bd_abort_claiming() argument
649 bd_clear_claiming(bdev_whole(bdev), holder); in bd_abort_claiming()
789 struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode, void *holder) in blkdev_get_by_dev() argument
809 ret = bd_prepare_to_claim(bdev, holder); in blkdev_get_by_dev()
827 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()