Home
last modified time | relevance | path

Searched refs:FMODE_EXCL (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v5.15/block/
Dbdev.c109 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()
Dioctl.c100 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()
Dfops.c444 filp->f_mode |= FMODE_EXCL; in blkdev_open()
/Linux-v5.15/drivers/mtd/devices/
Dblock2mtd.c209 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/
Dtarget_core_iblock.c102 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()
Dtarget_core_pscsi.c373 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/
Dsuper.c1234 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/
Dsuper.c1382 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/
Ddev-replace.c260 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()
Dvolumes.c1205 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/
Dswim.c615 if (fs->ref_count == -1 || (fs->ref_count && mode & FMODE_EXCL)) in floppy_open()
618 if (mode & FMODE_EXCL) in floppy_open()
Dswim3.c960 } else if (fs->ref_count == -1 || mode & FMODE_EXCL) in floppy_open()
987 if (mode & FMODE_EXCL) in floppy_open()
Dataflop.c1902 if (p->ref == -1 || (p->ref && mode & FMODE_EXCL)) in floppy_open()
1905 if (mode & FMODE_EXCL) in floppy_open()
Dloop.c1212 if (!(mode & FMODE_EXCL)) { in loop_configure()
1312 if (!(mode & FMODE_EXCL)) in loop_configure()
1319 if (!(mode & FMODE_EXCL)) in loop_configure()
Dpktcdvd.c2154 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/
Djfs_logmgr.c1111 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/
Dzram_drv.c406 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/
Ddm.c645 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/
Dxfs_super.c350 *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/
Dswapfile.c2671 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/
Dsuper.c1271 fmode_t mode = FMODE_READ | FMODE_EXCL; in nilfs_mount()
/Linux-v5.15/drivers/block/drbd/
Ddrbd_nl.c1709 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/
Djournal.c2599 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/
Dfs.h128 #define FMODE_EXCL ((__force fmode_t)0x80) macro
/Linux-v5.15/fs/ext4/
Dsuper.c1079 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()

12