Lines Matching full:whole
546 struct block_device *whole = bdev_whole(bdev);
563 * If the whole devices holder is set to bd_may_claim, a partition on
564 * the device is claimed, but not the whole device.
566 if (whole != bdev &&
567 whole->bd_holder && whole->bd_holder != bd_may_claim)
588 struct block_device *whole = bdev_whole(bdev);
601 if (whole->bd_claiming) {
602 wait_queue_head_t *wq = __var_waitqueue(&whole->bd_claiming);
613 whole->bd_claiming = holder;
619 static void bd_clear_claiming(struct block_device *whole, void *holder)
623 BUG_ON(whole->bd_claiming != holder);
624 whole->bd_claiming = NULL;
625 wake_up_var(&whole->bd_claiming);
640 struct block_device *whole = bdev_whole(bdev);
645 * Note that for a whole device bd_holders will be incremented twice,
648 whole->bd_holders++;
649 whole->bd_holder = bd_may_claim;
655 bd_clear_claiming(whole, holder);
678 struct block_device *whole = bdev_whole(bdev);
688 WARN_ON_ONCE(--whole->bd_holders < 0);
697 if (!whole->bd_holders)
698 whole->bd_holder = NULL;
812 struct block_device *whole = bdev_whole(part);
816 whole->bd_disk->open_partitions--;
818 blkdev_put_whole(whole);