Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/char/
Draw.c81 filp->f_mode | FMODE_EXCL, raw_open); in raw_open()
100 blkdev_put(bdev, filp->f_mode | FMODE_EXCL); in raw_open()
122 blkdev_put(bdev, filp->f_mode | FMODE_EXCL); in raw_release()
/kernel/linux/linux-5.10/drivers/hyperhold/
Dhp_device.c39 blkdev_put(dev->bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in unbind_bdev()
65 dev->bdev = blkdev_get_by_dev(inode->i_rdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL, dev); in bind_bdev()
/kernel/linux/linux-5.10/block/
Dioctl.c108 mode &= ~FMODE_EXCL; in blkdev_reread_part()
490 if (mode & FMODE_EXCL) in blkdev_bszset()
493 if (IS_ERR(blkdev_get_by_dev(bdev->bd_dev, mode | FMODE_EXCL, &bdev))) in blkdev_bszset()
496 blkdev_put(bdev, mode | FMODE_EXCL); in blkdev_bszset()
/kernel/liteos_a/fs/proc/include/
Dproc_fs.h68 #define FMODE_EXCL ((fmode_t)0x80) macro
/kernel/linux/linux-5.10/kernel/power/
Dhibernate.c691 swsusp_close(FMODE_READ | FMODE_EXCL); in load_image_and_restore()
981 swsusp_close(FMODE_READ | FMODE_EXCL); in software_resume()
1016 swsusp_close(FMODE_READ | FMODE_EXCL); in software_resume()
Dswap.c1527 FMODE_READ | FMODE_EXCL, &holder); in swsusp_check()
1549 blkdev_put(hib_resume_bdev, FMODE_READ | FMODE_EXCL); in swsusp_check()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/pstore/
Dblk.c245 mode |= FMODE_EXCL; in psblk_get_bdev()
284 mode |= FMODE_EXCL; in psblk_put_bdev()
/kernel/linux/linux-5.10/drivers/target/
Dtarget_core_iblock.c93 mode = FMODE_READ|FMODE_EXCL; in iblock_configure_device()
162 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.c375 FMODE_WRITE|FMODE_READ|FMODE_EXCL, pdv); in pscsi_create_type_disk()
385 blkdev_put(pdv->pdv_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in pscsi_create_type_disk()
574 FMODE_WRITE|FMODE_READ|FMODE_EXCL); in pscsi_destroy_device()
/kernel/linux/linux-5.10/fs/btrfs/
Ddev-replace.c255 bdev = blkdev_get_by_path(device_path, FMODE_WRITE | FMODE_EXCL, in btrfs_init_dev_replace_tgtdev()
311 device->mode = FMODE_EXCL; in btrfs_init_dev_replace_tgtdev()
326 blkdev_put(bdev, FMODE_EXCL); in btrfs_init_dev_replace_tgtdev()
/kernel/linux/linux-5.10/fs/
Dsuper.c1295 fmode_t mode = FMODE_READ | FMODE_EXCL; in get_tree_bdev()
1381 fmode_t mode = FMODE_READ | FMODE_EXCL; in mount_bdev()
1458 WARN_ON_ONCE(!(mode & FMODE_EXCL)); in kill_block_super()
1459 blkdev_put(bdev, mode | FMODE_EXCL); in kill_block_super()
Dblock_dev.c121 if (!(mode & FMODE_EXCL)) { in truncate_bdev_range()
1491 if (!for_part && (mode & FMODE_EXCL)) { in __blkdev_get()
1764 filp->f_mode |= FMODE_EXCL; in blkdev_open()
1828 if (mode & FMODE_EXCL) { in blkdev_put()
/kernel/linux/linux-5.10/drivers/md/bcache/
Dsuper.c1401 blkdev_put(dc->bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in cached_dev_free()
2246 blkdev_put(ca->bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in bch_cache_release()
2388 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in register_cache()
2492 blkdev_put(args->bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in register_bdev_worker()
2522 blkdev_put(args->bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in register_cache_worker()
2590 FMODE_READ|FMODE_WRITE|FMODE_EXCL, in register_bcache()
2672 blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in register_bcache()
/kernel/linux/linux-5.10/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.c943 } else if (fs->ref_count == -1 || mode & FMODE_EXCL) in floppy_open()
970 if (mode & FMODE_EXCL) in floppy_open()
Dataflop.c1899 if (p->ref == -1 || (p->ref && mode & FMODE_EXCL)) in floppy_open()
1902 if (mode & FMODE_EXCL) in floppy_open()
Dpktcdvd.c2120 bdev = blkdev_get_by_dev(pd->bdev->bd_dev, FMODE_READ | FMODE_EXCL, pd); in pkt_open_dev()
2168 blkdev_put(bdev, FMODE_READ | FMODE_EXCL); in pkt_open_dev()
2185 blkdev_put(pd->bdev, FMODE_READ | FMODE_EXCL); in pkt_release_dev()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/block/zram/
Dzram_drv.c354 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in reset_bdev()
443 FMODE_READ | FMODE_WRITE | FMODE_EXCL, zram); in backing_dev_store()
492 blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in backing_dev_store()
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_super.c323 *bdevp = blkdev_get_by_path(name, FMODE_READ|FMODE_WRITE|FMODE_EXCL, in xfs_blkdev_get()
338 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in xfs_blkdev_put()
/kernel/linux/linux-5.10/drivers/md/
Ddm.c757 bdev = blkdev_get_by_dev(dev, td->dm_dev.mode | FMODE_EXCL, _dm_claim_ptr); in open_table_device()
763 blkdev_put(bdev, td->dm_dev.mode | FMODE_EXCL); in open_table_device()
781 blkdev_put(td->dm_dev.bdev, td->dm_dev.mode | FMODE_EXCL); in close_table_device()
/kernel/linux/linux-5.10/mm/
Dswapfile.c2720 blkdev_put(bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in SYSCALL_DEFINE1()
2942 FMODE_READ | FMODE_WRITE | FMODE_EXCL, p); in claim_swapfile()
3400 blkdev_put(p->bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in SYSCALL_DEFINE2()
/kernel/linux/linux-5.10/fs/nilfs2/
Dsuper.c1302 fmode_t mode = FMODE_READ | FMODE_EXCL; in nilfs_mount()
/kernel/linux/linux-5.10/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()

12