Home
last modified time | relevance | path

Searched refs:file_bdev (Results 1 – 25 of 36) sorted by relevance

12

/linux-6.12.1/drivers/s390/block/
Ddasd_genhd.c181 mutex_lock(&file_bdev(bdev_file)->bd_disk->open_mutex); in dasd_destroy_partitions()
182 bdev_disk_changed(file_bdev(bdev_file)->bd_disk, true); in dasd_destroy_partitions()
183 mutex_unlock(&file_bdev(bdev_file)->bd_disk->open_mutex); in dasd_destroy_partitions()
Ddasd.c427 disk_uevent(file_bdev(device->block->bdev_file)->bd_disk, in dasd_state_ready_to_online()
448 disk_uevent(file_bdev(device->block->bdev_file)->bd_disk, in dasd_state_online_to_ready()
3640 bdev_mark_dead(file_bdev(device->block->bdev_file), false); in dasd_generic_set_offline()
/linux-6.12.1/fs/nfs/blocklayout/
Ddev.c19 struct block_device *bdev = file_bdev(dev->bdev_file); in bl_unregister_scsi()
35 struct block_device *bdev = file_bdev(dev->bdev_file); in bl_register_scsi()
232 map->bdev = file_bdev(dev->bdev_file); in bl_map_simple()
314 d->len = bdev_nr_bytes(file_bdev(bdev_file)); in bl_parse_simple()
318 file_bdev(bdev_file)->bd_disk->disk_name); in bl_parse_simple()
415 bdev = file_bdev(bdev_file); in bl_parse_scsi()
/linux-6.12.1/drivers/block/xen-blkback/
Dxenbus.c102 err = sync_blockdev(file_bdev(blkif->vbd.bdev_file)); in xen_update_blkif_status()
504 if (file_bdev(vbd->bdev_file)->bd_disk == NULL) { in xen_vbd_create()
512 if (cdrom || disk_to_cdi(file_bdev(vbd->bdev_file)->bd_disk)) in xen_vbd_create()
514 if (file_bdev(vbd->bdev_file)->bd_disk->flags & GENHD_FL_REMOVABLE) in xen_vbd_create()
517 if (bdev_write_cache(file_bdev(bdev_file))) in xen_vbd_create()
519 if (bdev_max_secure_erase_sectors(file_bdev(bdev_file))) in xen_vbd_create()
572 struct block_device *bdev = file_bdev(be->blkif->vbd.bdev_file); in xen_blkbk_discard()
934 file_bdev(be->blkif->vbd.bdev_file))); in connect()
942 file_bdev(be->blkif->vbd.bdev_file))); in connect()
Dcommon.h363 #define vbd_sz(_v) bdev_nr_sectors(file_bdev((_v)->bdev_file))
Dblkback.c468 req->bdev = file_bdev(vbd->bdev_file); in xen_vbd_translate()
972 struct block_device *bdev = file_bdev(blkif->vbd.bdev_file); in dispatch_discard_io()
/linux-6.12.1/block/
Dbdev.c58 struct block_device *file_bdev(struct file *bdev_file) in file_bdev() function
62 EXPORT_SYMBOL(file_bdev);
860 bdev = file_bdev(bdev_file); in bdev_yield_write_access()
1043 if (bdev_read_only(file_bdev(file))) { in bdev_file_open_by_path()
1055 struct block_device *bdev = file_bdev(bdev_file); in bd_yield_claim()
1069 struct block_device *bdev = file_bdev(bdev_file); in bdev_release()
1125 struct block_device *bdev = file_bdev(bdev_file); in bdev_fput()
/linux-6.12.1/drivers/block/
Dpktcdvd.c343 MAJOR(file_bdev(pd->bdev_file)->bd_dev), in device_map_show()
344 MINOR(file_bdev(pd->bdev_file)->bd_dev)); in device_map_show()
441 file_bdev(pd->bdev_file)); in pkt_seq_show()
716 struct request_queue *q = bdev_get_queue(file_bdev(pd->bdev_file)); in pkt_generic_packet()
1055 bio_init(bio, file_bdev(pd->bdev_file), bio->bi_inline_vecs, 1, in pkt_gather_data()
1271 bio_init(pkt->w_bio, file_bdev(pd->bdev_file), pkt->w_bio->bi_inline_vecs, in pkt_start_write()
2176 bdev_file = bdev_file_open_by_dev(file_bdev(pd->bdev_file)->bd_dev, in pkt_open_dev()
2191 set_capacity_and_notify(file_bdev(pd->bdev_file)->bd_disk, lba << 2); in pkt_open_dev()
2193 q = bdev_get_queue(file_bdev(pd->bdev_file)); in pkt_open_dev()
2324 struct bio *cloned_bio = bio_alloc_clone(file_bdev(pd->bdev_file), bio, in pkt_make_request_read()
[all …]
/linux-6.12.1/drivers/block/rnbd/
Drnbd-srv.c148 bio = bio_alloc(file_bdev(sess_dev->bdev_file), 1, in process_rdma()
544 struct block_device *bdev = file_bdev(sess_dev->bdev_file); in rnbd_srv_fill_msg_open_rsp()
734 srv_dev = rnbd_srv_get_or_create_srv_dev(file_bdev(bdev_file), srv_sess, in process_msg_open()
760 ret = rnbd_srv_create_dev_sysfs(srv_dev, file_bdev(bdev_file)); in process_msg_open()
/linux-6.12.1/drivers/mtd/devices/
Dblock2mtd.c198 sync_blockdev(file_bdev(dev->bdev_file)); in block2mtd_sync()
288 bdev = file_bdev(bdev_file); in add_device()
/linux-6.12.1/drivers/md/bcache/
Dsuper.c1451 dc->bdev = file_bdev(bdev_file); in register_bdev()
2344 ca->bdev = file_bdev(bdev_file); in register_cache()
2347 if (bdev_max_discard_sectors(file_bdev(bdev_file))) in register_cache()
2358 pr_notice("error %pg: %s\n", file_bdev(bdev_file), err); in register_cache()
2369 if (kobject_add(&ca->kobj, bdev_kobj(file_bdev(bdev_file)), "bcache")) { in register_cache()
2371 file_bdev(bdev_file)); in register_cache()
2385 pr_info("registered cache device %pg\n", file_bdev(ca->bdev_file)); in register_cache()
2550 err = read_super(sb, file_bdev(bdev_file), &sb_disk); in register_bcache()
2562 bdev_file2 = bdev_file_open_by_dev(file_bdev(bdev_file)->bd_dev, in register_bcache()
/linux-6.12.1/fs/ext4/
Dfsmap.c581 new_encode_dev(file_bdev(EXT4_SB(sb)->s_journal_bdev_file)->bd_dev)) in ext4_getfsmap_is_valid_device()
653 file_bdev(EXT4_SB(sb)->s_journal_bdev_file)->bd_dev); in ext4_getfsmap()
/linux-6.12.1/fs/jfs/
Djfs_mount.c434 new_encode_dev(file_bdev(sbi->log->bdev_file)->bd_dev)); in updateSuper()
Djfs_logmgr.c1073 if (file_bdev(log->bdev_file)->bd_dev == sbi->logdev) { in lmLogOpen()
1975 bio = bio_alloc(file_bdev(log->bdev_file), 1, REQ_OP_READ, GFP_NOFS); in lbmRead()
2118 bdev = file_bdev(log->bdev_file); in lbmStartIO()
/linux-6.12.1/fs/xfs/
Dxfs_super.c458 if (file_bdev(rtdev_file) == ddev || in xfs_open_devices()
460 file_bdev(rtdev_file) == file_bdev(logdev_file))) { in xfs_open_devices()
482 if (logdev_file && file_bdev(logdev_file) != ddev) { in xfs_open_devices()
/linux-6.12.1/fs/reiserfs/
Dprocfs.c357 file_bdev(SB_JOURNAL(sb)->j_bdev_file), in show_journal()
Djournal.c2389 file_bdev(journal->j_bdev_file)); in journal_read()
2450 reiserfs_breada(file_bdev(journal->j_bdev_file), cur_dblock, in journal_read()
2648 file_bdev(journal->j_bdev_file)); in journal_init_dev()
2806 file_bdev(journal->j_bdev_file), in journal_init()
2830 file_bdev(journal->j_bdev_file), in journal_init()
Dreiserfs.h2813 file_bdev(SB_JOURNAL(s)->j_bdev_file), block, s->s_blocksize)
2814 #define journal_getblk(s, block) __getblk(file_bdev(SB_JOURNAL(s)->j_bdev_file),\
2816 #define journal_bread(s, block) __bread(file_bdev(SB_JOURNAL(s)->j_bdev_file),\
/linux-6.12.1/fs/btrfs/
Dvolumes.c483 bdev = file_bdev(*bdev_file); in btrfs_get_bdev_and_sb()
684 if (bdev_read_only(file_bdev(bdev_file))) in btrfs_open_one_device()
690 if (!bdev_nonrot(file_bdev(bdev_file))) in btrfs_open_one_device()
693 if (bdev_max_discard_sectors(file_bdev(bdev_file))) in btrfs_open_one_device()
697 device->bdev = file_bdev(bdev_file); in btrfs_open_one_device()
1412 ret = btrfs_sb_log_location_bdev(file_bdev(bdev_file), 0, READ, &bytenr); in btrfs_scan_one_device()
1418 disk_super = btrfs_read_disk_super(file_bdev(bdev_file), bytenr, in btrfs_scan_one_device()
1425 devt = file_bdev(bdev_file)->bd_dev; in btrfs_scan_one_device()
2661 if (!btrfs_check_device_zone_type(fs_info, file_bdev(bdev_file))) { in btrfs_init_new_device()
2673 sync_blockdev(file_bdev(bdev_file)); in btrfs_init_new_device()
[all …]
/linux-6.12.1/drivers/nvme/target/
Dio-cmd-bdev.c101 ns->bdev = file_bdev(ns->bdev_file); in nvmet_bdev_ns_enable()
/linux-6.12.1/fs/erofs/
Ddata.c193 map->m_bdev = file_bdev(dif->file); in erofs_fill_from_devinfo()
Dsuper.c195 dif->dax_dev = fs_dax_get_by_bdev(file_bdev(file), in erofs_init_device()
/linux-6.12.1/drivers/target/
Dtarget_core_pscsi.c1001 return bdev_nr_sectors(file_bdev(pdv->pdv_bdev_file)); in pscsi_get_blocks()
Dtarget_core_iblock.c127 ib_dev->ibd_bd = bd = file_bdev(bdev_file); in iblock_configure_device()
/linux-6.12.1/drivers/block/drbd/
Ddrbd_nl.c1647 err = bd_link_disk_holder(file_bdev(file), device->vdisk); in open_backing_dev()
1667 nbc->backing_bdev = file_bdev(file); in open_backing_devices()
1688 nbc->md_bdev = file_bdev(file); in open_backing_devices()
1699 bd_unlink_disk_holder(file_bdev(bdev_file), device->vdisk); in close_backing_dev()

12