Lines Matching defs:bd_holder
644 if (bdev->bd_holder == holder)
646 else if (bdev->bd_holder != NULL)
651 else if (whole->bd_holder == bd_claim)
653 else if (whole->bd_holder != NULL)
668 * return, the caller has ownership of bd_claiming and bd_holder[s].
797 * will be incremented twice, and bd_holder will
801 whole->bd_holder = bd_claim;
803 bdev->bd_holder = holder;
860 bdev->bd_contains->bd_holder = NULL;
862 bdev->bd_holder = NULL;
901 * 'struct bd_holder' contains pointers to kobjects symlinked by
905 struct bd_holder {
921 struct bd_holder *bo)
955 static void bd_holder_release_dirs(struct bd_holder *bo)
963 static struct bd_holder *alloc_bd_holder(struct kobject *kobj)
965 struct bd_holder *bo;
977 static void free_bd_holder(struct bd_holder *bo)
983 * find_bd_holder - find matching struct bd_holder from the block device
986 * @bo: target struct bd_holder
992 static struct bd_holder *find_bd_holder(struct block_device *bdev,
993 struct bd_holder *bo)
995 struct bd_holder *tmp;
1017 static int add_bd_holder(struct block_device *bdev, struct bd_holder *bo)
1049 * remove the struct bd_holder from the list, delete symlinks for it.
1051 * Returns a pointer to the struct bd_holder when it's removed from the list
1056 static struct bd_holder *del_bd_holder(struct block_device *bdev,
1059 struct bd_holder *bo;
1097 struct bd_holder *bo, *found;
1551 if (bdev->bd_holder == filp)