Lines Matching defs:whole
463 struct block_device *whole = bdev_whole(bdev);
480 * If the whole devices holder is set to bd_may_claim, a partition on
481 * the device is claimed, but not the whole device.
483 if (whole != bdev &&
484 whole->bd_holder && whole->bd_holder != bd_may_claim)
505 struct block_device *whole = bdev_whole(bdev);
518 if (whole->bd_claiming) {
519 wait_queue_head_t *wq = bit_waitqueue(&whole->bd_claiming, 0);
530 whole->bd_claiming = holder;
536 static void bd_clear_claiming(struct block_device *whole, void *holder)
540 BUG_ON(whole->bd_claiming != holder);
541 whole->bd_claiming = NULL;
542 wake_up_bit(&whole->bd_claiming, 0);
557 struct block_device *whole = bdev_whole(bdev);
562 * Note that for a whole device bd_holders will be incremented twice,
565 whole->bd_holders++;
566 whole->bd_holder = bd_may_claim;
572 bd_clear_claiming(whole, holder);
595 struct block_device *whole = bdev_whole(bdev);
605 WARN_ON_ONCE(--whole->bd_holders < 0);
614 if (!whole->bd_holders)
615 whole->bd_holder = NULL;
695 struct block_device *whole = bdev_whole(part);
699 whole->bd_disk->open_partitions--;
701 blkdev_put_whole(whole);