Lines Matching full:whole

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