/Linux-v6.1/block/ |
D | bdev.c | 104 if (!(mode & FMODE_EXCL)) { in truncate_bdev_range() 111 if (!(mode & FMODE_EXCL)) in truncate_bdev_range() 805 if (mode & FMODE_EXCL) { in blkdev_get_by_dev() 825 if (mode & FMODE_EXCL) { in blkdev_get_by_dev() 849 if (mode & FMODE_EXCL) in blkdev_get_by_dev() 912 if (mode & FMODE_EXCL) { in blkdev_put()
|
D | ioctl.c | 454 if (mode & FMODE_EXCL) in blkdev_bszset() 457 if (IS_ERR(blkdev_get_by_dev(bdev->bd_dev, mode | FMODE_EXCL, &bdev))) in blkdev_bszset() 460 blkdev_put(bdev, mode | FMODE_EXCL); in blkdev_bszset() 530 return disk_scan_partitions(bdev->bd_disk, mode & ~FMODE_EXCL); in blkdev_common_ioctl()
|
D | fops.c | 481 filp->f_mode |= FMODE_EXCL; in blkdev_open()
|
/Linux-v6.1/kernel/power/ |
D | hibernate.c | 696 swsusp_close(FMODE_READ | FMODE_EXCL); in load_image_and_restore() 701 swsusp_close(FMODE_READ | FMODE_EXCL); in load_image_and_restore() 993 swsusp_close(FMODE_READ | FMODE_EXCL); in software_resume() 1028 swsusp_close(FMODE_READ | FMODE_EXCL); in software_resume()
|
D | swap.c | 1523 FMODE_READ | FMODE_EXCL, &holder); in swsusp_check() 1550 blkdev_put(hib_resume_bdev, FMODE_READ | FMODE_EXCL); in swsusp_check()
|
/Linux-v6.1/drivers/mtd/devices/ |
D | block2mtd.c | 212 blkdev_put(dev->blkdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in block2mtd_free_device() 225 const fmode_t mode = FMODE_READ | FMODE_WRITE | FMODE_EXCL; in add_device()
|
/Linux-v6.1/drivers/target/ |
D | target_core_iblock.c | 111 mode = FMODE_READ|FMODE_EXCL; in iblock_configure_device() 176 blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in iblock_configure_device() 202 blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in iblock_destroy_device()
|
D | target_core_pscsi.c | 372 FMODE_WRITE|FMODE_READ|FMODE_EXCL, pdv); in pscsi_create_type_disk() 382 blkdev_put(pdv->pdv_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in pscsi_create_type_disk() 571 FMODE_WRITE|FMODE_READ|FMODE_EXCL); in pscsi_destroy_device()
|
/Linux-v6.1/fs/ |
D | super.c | 1263 fmode_t mode = FMODE_READ | FMODE_EXCL; in get_tree_bdev() 1351 fmode_t mode = FMODE_READ | FMODE_EXCL; in mount_bdev() 1430 WARN_ON_ONCE(!(mode & FMODE_EXCL)); in kill_block_super() 1431 blkdev_put(bdev, mode | FMODE_EXCL); in kill_block_super()
|
/Linux-v6.1/drivers/md/bcache/ |
D | super.c | 1373 blkdev_put(dc->bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in cached_dev_free() 2222 blkdev_put(ca->bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in bch_cache_release() 2363 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in register_cache() 2465 blkdev_put(args->bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in register_bdev_worker() 2495 blkdev_put(args->bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in register_cache_worker() 2563 FMODE_READ|FMODE_WRITE|FMODE_EXCL, in register_bcache() 2652 blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in register_bcache()
|
/Linux-v6.1/fs/btrfs/ |
D | dev-replace.c | 259 bdev = blkdev_get_by_path(device_path, FMODE_WRITE | FMODE_EXCL, in btrfs_init_dev_replace_tgtdev() 324 device->mode = FMODE_EXCL; in btrfs_init_dev_replace_tgtdev() 343 blkdev_put(bdev, FMODE_EXCL); in btrfs_init_dev_replace_tgtdev()
|
D | volumes.c | 1206 flags |= FMODE_EXCL; in open_fs_devices() 1359 flags |= FMODE_EXCL; in btrfs_scan_one_device() 2608 bdev = blkdev_get_by_path(device_path, FMODE_WRITE | FMODE_EXCL, in btrfs_init_new_device() 2678 device->mode = FMODE_EXCL; in btrfs_init_new_device() 2836 blkdev_put(bdev, FMODE_EXCL); in btrfs_init_new_device()
|
/Linux-v6.1/drivers/block/ |
D | swim.c | 617 if (fs->ref_count == -1 || (fs->ref_count && mode & FMODE_EXCL)) in floppy_open() 620 if (mode & FMODE_EXCL) in floppy_open()
|
D | swim3.c | 961 } else if (fs->ref_count == -1 || mode & FMODE_EXCL) in floppy_open() 988 if (mode & FMODE_EXCL) in floppy_open()
|
D | loop.c | 1020 if (!(mode & FMODE_EXCL)) { in loop_configure() 1115 if (!(mode & FMODE_EXCL)) in loop_configure() 1127 if (!(mode & FMODE_EXCL)) in loop_configure()
|
D | ataflop.c | 1927 if (p->ref == -1 || (p->ref && mode & FMODE_EXCL)) in floppy_open() 1930 if (mode & FMODE_EXCL) in floppy_open()
|
D | pktcdvd.c | 2140 bdev = blkdev_get_by_dev(pd->bdev->bd_dev, FMODE_READ | FMODE_EXCL, pd); in pkt_open_dev() 2187 blkdev_put(bdev, FMODE_READ | FMODE_EXCL); in pkt_open_dev() 2204 blkdev_put(pd->bdev, FMODE_READ | FMODE_EXCL); in pkt_release_dev()
|
/Linux-v6.1/fs/erofs/ |
D | super.c | 253 bdev = blkdev_get_by_path(dif->path, FMODE_READ | FMODE_EXCL, in erofs_init_device() 859 blkdev_put(dif->bdev, FMODE_READ | FMODE_EXCL); in erofs_release_device_info()
|
/Linux-v6.1/fs/jfs/ |
D | jfs_logmgr.c | 1103 bdev = blkdev_get_by_dev(sbi->logdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL, in lmLogOpen() 1144 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in lmLogOpen() 1488 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in lmLogClose()
|
/Linux-v6.1/drivers/block/zram/ |
D | zram_drv.c | 437 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in reset_bdev() 525 FMODE_READ | FMODE_WRITE | FMODE_EXCL, zram); in backing_dev_store() 556 blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in backing_dev_store()
|
/Linux-v6.1/fs/xfs/ |
D | xfs_super.c | 377 *bdevp = blkdev_get_by_path(name, FMODE_READ|FMODE_WRITE|FMODE_EXCL, in xfs_blkdev_get() 392 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in xfs_blkdev_put()
|
/Linux-v6.1/drivers/md/ |
D | dm.c | 744 bdev = blkdev_get_by_dev(dev, td->dm_dev.mode | FMODE_EXCL, _dm_claim_ptr); in open_table_device() 750 blkdev_put(bdev, td->dm_dev.mode | FMODE_EXCL); in open_table_device() 768 blkdev_put(td->dm_dev.bdev, td->dm_dev.mode | FMODE_EXCL); in close_table_device()
|
/Linux-v6.1/mm/ |
D | swapfile.c | 2534 blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in SYSCALL_DEFINE1() 2765 FMODE_READ | FMODE_WRITE | FMODE_EXCL, p); in claim_swapfile() 3216 blkdev_put(p->bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in SYSCALL_DEFINE2()
|
/Linux-v6.1/fs/nilfs2/ |
D | super.c | 1270 fmode_t mode = FMODE_READ | FMODE_EXCL; in nilfs_mount()
|
/Linux-v6.1/drivers/block/drbd/ |
D | drbd_nl.c | 1631 FMODE_READ | FMODE_WRITE | FMODE_EXCL, claim_ptr); in open_backing_dev() 1643 blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in open_backing_dev() 1691 blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in close_backing_dev()
|