Lines Matching refs:handle
837 struct bdev_handle *handle = kmalloc(sizeof(*handle), GFP_KERNEL); in bdev_open_by_dev() local
840 if (!handle) in bdev_open_by_dev()
844 kfree(handle); in bdev_open_by_dev()
847 handle->bdev = bdev; in bdev_open_by_dev()
848 handle->holder = holder; in bdev_open_by_dev()
849 return handle; in bdev_open_by_dev()
894 struct bdev_handle *handle; in bdev_open_by_path() local
902 handle = bdev_open_by_dev(dev, mode, holder, hops); in bdev_open_by_path()
903 if (!IS_ERR(handle) && (mode & BLK_OPEN_WRITE) && in bdev_open_by_path()
904 bdev_read_only(handle->bdev)) { in bdev_open_by_path()
905 bdev_release(handle); in bdev_open_by_path()
909 return handle; in bdev_open_by_path()
949 void bdev_release(struct bdev_handle *handle) in bdev_release() argument
951 blkdev_put(handle->bdev, handle->holder); in bdev_release()
952 kfree(handle); in bdev_release()