Home
last modified time | relevance | path

Searched refs:blkdev_put (Results 1 – 25 of 33) sorted by relevance

12

/Linux-v5.10/drivers/char/
Draw.c100 blkdev_put(bdev, filp->f_mode | FMODE_EXCL); in raw_open()
122 blkdev_put(bdev, filp->f_mode | FMODE_EXCL); in raw_release()
/Linux-v5.10/drivers/block/rnbd/
Drnbd-srv-dev.c44 blkdev_put(dev->bdev, dev->blk_open_flags); in rnbd_dev_close()
/Linux-v5.10/fs/
Dsuper.c1308 blkdev_put(bdev, mode); in get_tree_bdev()
1317 blkdev_put(bdev, mode); in get_tree_bdev()
1326 blkdev_put(bdev, mode); in get_tree_bdev()
1338 blkdev_put(bdev, mode); in get_tree_bdev()
1413 blkdev_put(bdev, mode); in mount_bdev()
1434 blkdev_put(bdev, mode); in mount_bdev()
1449 blkdev_put(bdev, mode | FMODE_EXCL); in kill_block_super()
Dblock_dev.c1676 blkdev_put(bdev, mode); in blkdev_get_by_path()
1800 void blkdev_put(struct block_device *bdev, fmode_t mode) in blkdev_put() function
1846 EXPORT_SYMBOL(blkdev_put);
1851 blkdev_put(bdev, filp->f_mode); in blkdev_close()
/Linux-v5.10/drivers/s390/block/
Ddasd_genhd.c153 blkdev_put(bdev, FMODE_READ); in dasd_destroy_partitions()
/Linux-v5.10/fs/pstore/
Dblk.c251 blkdev_put(bdev, mode); in psblk_get_bdev()
275 blkdev_put(bdev, mode); in psblk_put_bdev()
/Linux-v5.10/drivers/md/
Dmd-autodetect.c234 blkdev_put(bdev, FMODE_READ); in md_setup_drive()
Ddm.c753 blkdev_put(bdev, td->dm_dev.mode | FMODE_EXCL); in open_table_device()
771 blkdev_put(td->dm_dev.bdev, td->dm_dev.mode | FMODE_EXCL); in close_table_device()
/Linux-v5.10/fs/nfs/blocklayout/
Ddev.c38 blkdev_put(dev->bdev, FMODE_READ | FMODE_WRITE); in bl_free_device()
396 blkdev_put(d->bdev, FMODE_READ | FMODE_WRITE); in bl_parse_scsi()
/Linux-v5.10/drivers/target/
Dtarget_core_iblock.c162 blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in iblock_configure_device()
187 blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in iblock_destroy_device()
Dtarget_core_pscsi.c385 blkdev_put(pdv->pdv_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in pscsi_create_type_disk()
573 blkdev_put(pdv->pdv_bd, in pscsi_destroy_device()
/Linux-v5.10/kernel/power/
Dswap.c364 blkdev_put(hib_resume_bdev, FMODE_WRITE); in swsusp_swap_check()
1548 blkdev_put(hib_resume_bdev, FMODE_READ); in swsusp_check()
1572 blkdev_put(hib_resume_bdev, mode); in swsusp_close()
/Linux-v5.10/drivers/md/bcache/
Dsuper.c1358 blkdev_put(dc->bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in cached_dev_free()
2193 blkdev_put(ca->bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in bch_cache_release()
2335 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in register_cache()
2439 blkdev_put(args->bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in register_bdev_worker()
2469 blkdev_put(args->bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in register_cache_worker()
2619 blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in register_bcache()
/Linux-v5.10/drivers/mtd/devices/
Dblock2mtd.c209 blkdev_put(dev->blkdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in block2mtd_free_device()
/Linux-v5.10/drivers/block/
Dpktcdvd.c2168 blkdev_put(bdev, FMODE_READ | FMODE_EXCL); in pkt_open_dev()
2185 blkdev_put(pd->bdev, FMODE_READ | FMODE_EXCL); in pkt_release_dev()
2531 blkdev_put(bdev, FMODE_READ | FMODE_NDELAY); in pkt_new_dev()
2555 blkdev_put(bdev, FMODE_READ | FMODE_NDELAY); in pkt_new_dev()
2756 blkdev_put(pd->bdev, FMODE_READ | FMODE_NDELAY); in pkt_remove_dev()
/Linux-v5.10/drivers/nvme/target/
Dio-cmd-bdev.c95 blkdev_put(ns->bdev, FMODE_WRITE | FMODE_READ); in nvmet_bdev_ns_disable()
/Linux-v5.10/fs/nilfs2/
Dsuper.c1350 blkdev_put(sd.bdev, mode); in nilfs_mount()
1359 blkdev_put(sd.bdev, mode); in nilfs_mount()
/Linux-v5.10/block/
Dioctl.c487 blkdev_put(bdev, mode | FMODE_EXCL); in blkdev_bszset()
/Linux-v5.10/fs/btrfs/
Dvolumes.c524 blkdev_put(*bdev, flags); in btrfs_get_bdev_and_sb()
531 blkdev_put(*bdev, flags); in btrfs_get_bdev_and_sb()
682 blkdev_put(bdev, flags); in btrfs_open_one_device()
1073 blkdev_put(device->bdev, device->mode); in __btrfs_free_extra_devids()
1118 blkdev_put(device->bdev, device->mode); in btrfs_close_bdev()
1369 blkdev_put(bdev, flags); in btrfs_scan_one_device()
2304 blkdev_put(bdev, FMODE_READ); in btrfs_find_device_by_path()
2710 blkdev_put(bdev, FMODE_EXCL); in btrfs_init_new_device()
Ddev-replace.c326 blkdev_put(bdev, FMODE_EXCL); in btrfs_init_dev_replace_tgtdev()
/Linux-v5.10/fs/jfs/
Djfs_logmgr.c1152 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in lmLogOpen()
1495 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in lmLogClose()
/Linux-v5.10/fs/ocfs2/cluster/
Dheartbeat.c1517 blkdev_put(reg->hr_bdev, FMODE_READ|FMODE_WRITE); in o2hb_region_release()
1908 blkdev_put(reg->hr_bdev, FMODE_READ | FMODE_WRITE); in o2hb_region_dev_store()
/Linux-v5.10/drivers/block/zram/
Dzram_drv.c408 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in reset_bdev()
546 blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in backing_dev_store()
/Linux-v5.10/drivers/block/xen-blkback/
Dxenbus.c470 blkdev_put(vbd->bdev, vbd->readonly ? FMODE_READ : FMODE_WRITE); in xen_vbd_free()
/Linux-v5.10/include/linux/
Dblkdev.h1999 void blkdev_put(struct block_device *bdev, fmode_t mode);

12