| /linux/fs/nfs/blocklayout/ |
| H A D | dev.c | 19 struct block_device *bdev = file_bdev(dev->bdev_file); in bl_unregister_scsi() 32 struct block_device *bdev = file_bdev(dev->bdev_file); in bl_register_scsi() 95 if (dev->bdev_file) in bl_free_device() 96 fput(dev->bdev_file); in bl_free_device() 230 map->bdev = file_bdev(dev->bdev_file); in bl_map_simple() 298 struct file *bdev_file; in bl_parse_simple() local 305 bdev_file = bdev_file_open_by_dev(dev, BLK_OPEN_READ | BLK_OPEN_WRITE, in bl_parse_simple() 307 if (IS_ERR(bdev_file)) { in bl_parse_simple() 309 MAJOR(dev), MINOR(dev), PTR_ERR(bdev_file)); in bl_parse_simple() 310 return PTR_ERR(bdev_file); in bl_parse_simple() [all …]
|
| H A D | blocklayout.h | 112 struct file *bdev_file; member
|
| /linux/block/ |
| H A D | bdev.c | 58 struct block_device *file_bdev(struct file *bdev_file) in file_bdev() argument 60 return I_BDEV(bdev_file->f_mapping->host); in file_bdev() 903 static inline bool bdev_unclaimed(const struct file *bdev_file) in bdev_unclaimed() argument 905 return bdev_file->private_data == BDEV_I(bdev_file->f_mapping->host); in bdev_unclaimed() 908 static void bdev_yield_write_access(struct file *bdev_file) in bdev_yield_write_access() argument 915 if (bdev_unclaimed(bdev_file)) in bdev_yield_write_access() 918 bdev = file_bdev(bdev_file); in bdev_yield_write_access() 920 if (bdev_file->f_mode & FMODE_WRITE_RESTRICTED) in bdev_yield_write_access() 922 else if (bdev_file->f_mode & FMODE_WRITE) in bdev_yield_write_access() 944 const struct blk_holder_ops *hops, struct file *bdev_file) in bdev_open() argument [all …]
|
| /linux/drivers/block/xen-blkback/ |
| H A D | xenbus.c | 84 if (!blkif->rings || !blkif->rings[0].irq || !blkif->vbd.bdev_file) in xen_update_blkif_status() 102 err = sync_blockdev(file_bdev(blkif->vbd.bdev_file)); in xen_update_blkif_status() 107 invalidate_inode_pages2(blkif->vbd.bdev_file->f_mapping); in xen_update_blkif_status() 475 if (vbd->bdev_file) in xen_vbd_free() 476 fput(vbd->bdev_file); in xen_vbd_free() 477 vbd->bdev_file = NULL; in xen_vbd_free() 485 struct file *bdev_file; in xen_vbd_create() local 494 bdev_file = bdev_file_open_by_dev(vbd->pdevice, vbd->readonly ? in xen_vbd_create() 497 if (IS_ERR(bdev_file)) { in xen_vbd_create() 503 vbd->bdev_file = bdev_file; in xen_vbd_create() [all …]
|
| H A D | common.h | 224 struct file *bdev_file; member 363 #define vbd_sz(_v) bdev_nr_sectors(file_bdev((_v)->bdev_file))
|
| /linux/drivers/nvme/target/ |
| H A D | io-cmd-bdev.c | 57 if (ns->bdev_file) { in nvmet_bdev_ns_disable() 58 fput(ns->bdev_file); in nvmet_bdev_ns_disable() 60 ns->bdev_file = NULL; in nvmet_bdev_ns_disable() 94 ns->bdev_file = bdev_file_open_by_path(ns->device_path, in nvmet_bdev_ns_enable() 96 if (IS_ERR(ns->bdev_file)) { in nvmet_bdev_ns_enable() 97 ret = PTR_ERR(ns->bdev_file); in nvmet_bdev_ns_enable() 102 ns->bdev_file = NULL; in nvmet_bdev_ns_enable() 105 ns->bdev = file_bdev(ns->bdev_file); in nvmet_bdev_ns_enable()
|
| H A D | nvmet.h | 102 struct file *bdev_file; member
|
| /linux/fs/jfs/ |
| H A D | jfs_logmgr.c | 1061 struct file *bdev_file; in lmLogOpen() local 1073 if (file_bdev(log->bdev_file)->bd_dev == sbi->logdev) { in lmLogOpen() 1103 bdev_file = bdev_file_open_by_dev(sbi->logdev, in lmLogOpen() 1105 if (IS_ERR(bdev_file)) { in lmLogOpen() 1106 rc = PTR_ERR(bdev_file); in lmLogOpen() 1110 log->bdev_file = bdev_file; in lmLogOpen() 1144 bdev_fput(bdev_file); in lmLogOpen() 1165 log->bdev_file = sb->s_bdev_file; in open_inline_log() 1438 struct file *bdev_file; in lmLogClose() local 1484 bdev_file = log->bdev_file; in lmLogClose() [all …]
|
| H A D | jfs_logmgr.h | 359 struct file *bdev_file; /* 4: log lv pointer */ member
|
| H A D | jfs_mount.c | 434 new_encode_dev(file_bdev(sbi->log->bdev_file)->bd_dev)); in updateSuper()
|
| /linux/drivers/target/ |
| H A D | target_core_iblock.c | 95 struct file *bdev_file; in iblock_configure_device() local 125 bdev_file = bdev_file_open_by_path(ib_dev->ibd_udev_path, mode, holder, in iblock_configure_device() 127 if (IS_ERR(bdev_file)) { in iblock_configure_device() 128 ret = PTR_ERR(bdev_file); in iblock_configure_device() 131 ib_dev->ibd_bdev_file = bdev_file; in iblock_configure_device() 132 ib_dev->ibd_bd = bd = file_bdev(bdev_file); in iblock_configure_device()
|
| /linux/drivers/block/rnbd/ |
| H A D | rnbd-srv.h | 49 struct file *bdev_file; member
|
| /linux/fs/ |
| H A D | super.c | 1606 struct file *bdev_file; in setup_bdev_super() local 1609 bdev_file = bdev_file_open_by_dev(sb->s_dev, mode, sb, &fs_holder_ops); in setup_bdev_super() 1610 if (IS_ERR(bdev_file)) { in setup_bdev_super() 1613 return PTR_ERR(bdev_file); in setup_bdev_super() 1615 bdev = file_bdev(bdev_file); in setup_bdev_super() 1623 bdev_fput(bdev_file); in setup_bdev_super() 1634 bdev_fput(bdev_file); in setup_bdev_super() 1638 sb->s_bdev_file = bdev_file; in setup_bdev_super()
|
| /linux/drivers/md/ |
| H A D | dm.c | 728 struct file *bdev_file; in open_table_device() local 738 bdev_file = bdev_file_open_by_dev(dev, mode, _dm_claim_ptr, NULL); in open_table_device() 739 if (IS_ERR(bdev_file)) { in open_table_device() 740 r = PTR_ERR(bdev_file); in open_table_device() 744 bdev = file_bdev(bdev_file); in open_table_device() 759 td->dm_dev.bdev_file = bdev_file; in open_table_device() 767 __fput_sync(bdev_file); in open_table_device() 783 fput(td->dm_dev.bdev_file); in close_table_device() 785 __fput_sync(td->dm_dev.bdev_file); in close_table_device()
|
| /linux/fs/xfs/ |
| H A D | xfs_buf.h | 373 struct file *bdev_file);
|
| H A D | xfs_buf.c | 1792 struct file *bdev_file) in xfs_alloc_buftarg() argument 1805 btp->bt_file = bdev_file; in xfs_alloc_buftarg() 1806 btp->bt_bdev = file_bdev(bdev_file); in xfs_alloc_buftarg()
|
| /linux/fs/btrfs/ |
| H A D | ioctl.c | 2600 struct file *bdev_file = NULL; in btrfs_ioctl_rm_dev_v2() local 2640 ret = btrfs_rm_device(fs_info, &args, &bdev_file); in btrfs_ioctl_rm_dev_v2() 2654 if (bdev_file) in btrfs_ioctl_rm_dev_v2() 2655 bdev_fput(bdev_file); in btrfs_ioctl_rm_dev_v2() 2668 struct file *bdev_file = NULL; in btrfs_ioctl_rm_dev() local 2698 ret = btrfs_rm_device(fs_info, &args, &bdev_file); in btrfs_ioctl_rm_dev() 2705 if (bdev_file) in btrfs_ioctl_rm_dev() 2706 bdev_fput(bdev_file); in btrfs_ioctl_rm_dev()
|
| /linux/fs/f2fs/ |
| H A D | super.c | 1920 bdev_fput(FDEV(i).bdev_file); in destroy_device_list() 4748 FDEV(0).bdev_file = sbi->sb->s_bdev_file; in f2fs_scan_devices() 4770 FDEV(i).bdev_file = bdev_file_open_by_path( in f2fs_scan_devices() 4774 if (IS_ERR(FDEV(i).bdev_file)) in f2fs_scan_devices() 4775 return PTR_ERR(FDEV(i).bdev_file); in f2fs_scan_devices() 4777 FDEV(i).bdev = file_bdev(FDEV(i).bdev_file); in f2fs_scan_devices()
|
| H A D | f2fs.h | 1362 struct file *bdev_file; member
|
| /linux/drivers/s390/block/ |
| H A D | dasd_int.h | 622 struct file *bdev_file; member
|