Home
last modified time | relevance | path

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

12

/Linux-v6.1/block/
Dbdev.c104 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()
Dioctl.c454 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()
Dfops.c481 filp->f_mode |= FMODE_EXCL; in blkdev_open()
/Linux-v6.1/kernel/power/
Dhibernate.c696 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()
Dswap.c1523 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/
Dblock2mtd.c212 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/
Dtarget_core_iblock.c111 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()
Dtarget_core_pscsi.c372 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/
Dsuper.c1263 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/
Dsuper.c1373 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/
Ddev-replace.c259 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()
Dvolumes.c1206 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/
Dswim.c617 if (fs->ref_count == -1 || (fs->ref_count && mode & FMODE_EXCL)) in floppy_open()
620 if (mode & FMODE_EXCL) in floppy_open()
Dswim3.c961 } else if (fs->ref_count == -1 || mode & FMODE_EXCL) in floppy_open()
988 if (mode & FMODE_EXCL) in floppy_open()
Dloop.c1020 if (!(mode & FMODE_EXCL)) { in loop_configure()
1115 if (!(mode & FMODE_EXCL)) in loop_configure()
1127 if (!(mode & FMODE_EXCL)) in loop_configure()
Dataflop.c1927 if (p->ref == -1 || (p->ref && mode & FMODE_EXCL)) in floppy_open()
1930 if (mode & FMODE_EXCL) in floppy_open()
Dpktcdvd.c2140 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/
Dsuper.c253 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/
Djfs_logmgr.c1103 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/
Dzram_drv.c437 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/
Dxfs_super.c377 *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/
Ddm.c744 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/
Dswapfile.c2534 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/
Dsuper.c1270 fmode_t mode = FMODE_READ | FMODE_EXCL; in nilfs_mount()
/Linux-v6.1/drivers/block/drbd/
Ddrbd_nl.c1631 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()

12