| /Linux-v5.15/block/ |
| D | bdev.c | 109 if (!(mode & FMODE_EXCL)) { in truncate_bdev_range() 116 if (!(mode & FMODE_EXCL)) in truncate_bdev_range() 808 if (mode & FMODE_EXCL) { in blkdev_get_by_dev() 826 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 | 100 mode &= ~FMODE_EXCL; in blkdev_reread_part() 440 if (mode & FMODE_EXCL) in blkdev_bszset() 443 if (IS_ERR(blkdev_get_by_dev(bdev->bd_dev, mode | FMODE_EXCL, &bdev))) in blkdev_bszset() 446 blkdev_put(bdev, mode | FMODE_EXCL); in blkdev_bszset()
|
| D | fops.c | 444 filp->f_mode |= FMODE_EXCL; in blkdev_open()
|
| /Linux-v5.15/drivers/mtd/devices/ |
| D | block2mtd.c | 209 blkdev_put(dev->blkdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in block2mtd_free_device() 222 const fmode_t mode = FMODE_READ | FMODE_WRITE | FMODE_EXCL; in add_device()
|
| /Linux-v5.15/drivers/target/ |
| D | target_core_iblock.c | 102 mode = FMODE_READ|FMODE_EXCL; in iblock_configure_device() 171 blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in iblock_configure_device() 197 blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in iblock_destroy_device()
|
| D | target_core_pscsi.c | 373 FMODE_WRITE|FMODE_READ|FMODE_EXCL, pdv); in pscsi_create_type_disk() 383 blkdev_put(pdv->pdv_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in pscsi_create_type_disk() 572 FMODE_WRITE|FMODE_READ|FMODE_EXCL); in pscsi_destroy_device()
|
| /Linux-v5.15/fs/ |
| D | super.c | 1234 fmode_t mode = FMODE_READ | FMODE_EXCL; in get_tree_bdev() 1320 fmode_t mode = FMODE_READ | FMODE_EXCL; in mount_bdev() 1397 WARN_ON_ONCE(!(mode & FMODE_EXCL)); in kill_block_super() 1398 blkdev_put(bdev, mode | FMODE_EXCL); in kill_block_super()
|
| /Linux-v5.15/drivers/md/bcache/ |
| D | super.c | 1382 blkdev_put(dc->bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in cached_dev_free() 2226 blkdev_put(ca->bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in bch_cache_release() 2368 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in register_cache() 2470 blkdev_put(args->bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in register_bdev_worker() 2500 blkdev_put(args->bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in register_cache_worker() 2568 FMODE_READ|FMODE_WRITE|FMODE_EXCL, in register_bcache() 2650 blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in register_bcache()
|
| /Linux-v5.15/fs/btrfs/ |
| D | dev-replace.c | 260 bdev = blkdev_get_by_path(device_path, FMODE_WRITE | FMODE_EXCL, in btrfs_init_dev_replace_tgtdev() 323 device->mode = FMODE_EXCL; in btrfs_init_dev_replace_tgtdev() 342 blkdev_put(bdev, FMODE_EXCL); in btrfs_init_dev_replace_tgtdev()
|
| D | volumes.c | 1205 flags |= FMODE_EXCL; in open_fs_devices() 1358 flags |= FMODE_EXCL; in btrfs_scan_one_device() 2551 bdev = blkdev_get_by_path(device_path, FMODE_WRITE | FMODE_EXCL, in btrfs_init_new_device() 2619 device->mode = FMODE_EXCL; in btrfs_init_new_device() 2768 blkdev_put(bdev, FMODE_EXCL); in btrfs_init_new_device()
|
| /Linux-v5.15/drivers/block/ |
| D | swim.c | 615 if (fs->ref_count == -1 || (fs->ref_count && mode & FMODE_EXCL)) in floppy_open() 618 if (mode & FMODE_EXCL) in floppy_open()
|
| D | swim3.c | 960 } else if (fs->ref_count == -1 || mode & FMODE_EXCL) in floppy_open() 987 if (mode & FMODE_EXCL) in floppy_open()
|
| D | ataflop.c | 1902 if (p->ref == -1 || (p->ref && mode & FMODE_EXCL)) in floppy_open() 1905 if (mode & FMODE_EXCL) in floppy_open()
|
| D | loop.c | 1212 if (!(mode & FMODE_EXCL)) { in loop_configure() 1312 if (!(mode & FMODE_EXCL)) in loop_configure() 1319 if (!(mode & FMODE_EXCL)) in loop_configure()
|
| D | pktcdvd.c | 2154 bdev = blkdev_get_by_dev(pd->bdev->bd_dev, FMODE_READ | FMODE_EXCL, pd); in pkt_open_dev() 2201 blkdev_put(bdev, FMODE_READ | FMODE_EXCL); in pkt_open_dev() 2218 blkdev_put(pd->bdev, FMODE_READ | FMODE_EXCL); in pkt_release_dev()
|
| /Linux-v5.15/fs/jfs/ |
| D | jfs_logmgr.c | 1111 bdev = blkdev_get_by_dev(sbi->logdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL, in lmLogOpen() 1152 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in lmLogOpen() 1496 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in lmLogClose()
|
| /Linux-v5.15/drivers/block/zram/ |
| D | zram_drv.c | 406 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in reset_bdev() 494 FMODE_READ | FMODE_WRITE | FMODE_EXCL, zram); in backing_dev_store() 536 blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in backing_dev_store()
|
| /Linux-v5.15/drivers/md/ |
| D | dm.c | 645 bdev = blkdev_get_by_dev(dev, td->dm_dev.mode | FMODE_EXCL, _dm_claim_ptr); in open_table_device() 651 blkdev_put(bdev, td->dm_dev.mode | FMODE_EXCL); in open_table_device() 669 blkdev_put(td->dm_dev.bdev, td->dm_dev.mode | FMODE_EXCL); in close_table_device()
|
| /Linux-v5.15/fs/xfs/ |
| D | xfs_super.c | 350 *bdevp = blkdev_get_by_path(name, FMODE_READ|FMODE_WRITE|FMODE_EXCL, in xfs_blkdev_get() 365 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in xfs_blkdev_put()
|
| /Linux-v5.15/mm/ |
| D | swapfile.c | 2671 blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in SYSCALL_DEFINE1() 2902 FMODE_READ | FMODE_WRITE | FMODE_EXCL, p); in claim_swapfile() 3366 blkdev_put(p->bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in SYSCALL_DEFINE2()
|
| /Linux-v5.15/fs/nilfs2/ |
| D | super.c | 1271 fmode_t mode = FMODE_READ | FMODE_EXCL; in nilfs_mount()
|
| /Linux-v5.15/drivers/block/drbd/ |
| D | drbd_nl.c | 1709 FMODE_READ | FMODE_WRITE | FMODE_EXCL, claim_ptr); in open_backing_dev() 1721 blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in open_backing_dev() 1769 blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in close_backing_dev()
|
| /Linux-v5.15/fs/reiserfs/ |
| D | journal.c | 2599 fmode_t blkdev_mode = FMODE_READ | FMODE_WRITE | FMODE_EXCL; in journal_init_dev() 2613 blkdev_mode &= ~FMODE_EXCL; in journal_init_dev()
|
| /Linux-v5.15/include/linux/ |
| D | fs.h | 128 #define FMODE_EXCL ((__force fmode_t)0x80) macro
|
| /Linux-v5.15/fs/ext4/ |
| D | super.c | 1079 bdev = blkdev_get_by_dev(dev, FMODE_READ|FMODE_WRITE|FMODE_EXCL, sb); in ext4_blkdev_get() 1096 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in ext4_blkdev_put()
|