/fs/btrfs/ |
D | zoned.h | 34 int btrfs_get_dev_zone(struct btrfs_device *device, u64 pos, 37 int btrfs_get_dev_zone_info(struct btrfs_device *device, bool populate_cache); 38 void btrfs_destroy_dev_zone_info(struct btrfs_device *device); 44 int btrfs_sb_log_location(struct btrfs_device *device, int mirror, int rw, 46 int btrfs_advance_sb_log(struct btrfs_device *device, int mirror); 48 u64 btrfs_find_allocatable_zones(struct btrfs_device *device, u64 hole_start, 50 int btrfs_reset_device_zone(struct btrfs_device *device, u64 physical, 52 int btrfs_ensure_empty_zones(struct btrfs_device *device, u64 start, u64 size); 67 int btrfs_zoned_issue_zeroout(struct btrfs_device *device, u64 physical, u64 length); 88 static inline int btrfs_get_dev_zone(struct btrfs_device *device, u64 pos, in btrfs_get_dev_zone() argument [all …]
|
D | volumes.c | 250 static void btrfs_dev_stat_print_on_load(struct btrfs_device *device); 399 void btrfs_free_device(struct btrfs_device *device) in btrfs_free_device() argument 401 WARN_ON(!list_empty(&device->post_commit_list)); in btrfs_free_device() 402 rcu_string_free(device->name); in btrfs_free_device() 403 extent_io_tree_release(&device->alloc_state); in btrfs_free_device() 404 btrfs_destroy_dev_zone_info(device); in btrfs_free_device() 405 kfree(device); in btrfs_free_device() 410 struct btrfs_device *device; in free_fs_devices() local 414 device = list_entry(fs_devices->devices.next, in free_fs_devices() 416 list_del(&device->dev_list); in free_fs_devices() [all …]
|
D | zoned.c | 191 static int emulate_report_zones(struct btrfs_device *device, u64 pos, in emulate_report_zones() argument 194 const sector_t zone_sectors = device->fs_info->zone_size >> SECTOR_SHIFT; in emulate_report_zones() 195 sector_t bdev_size = bdev_nr_sectors(device->bdev); in emulate_report_zones() 216 static int btrfs_get_dev_zones(struct btrfs_device *device, u64 pos, in btrfs_get_dev_zones() argument 219 struct btrfs_zoned_device_info *zinfo = device->zone_info; in btrfs_get_dev_zones() 226 if (!bdev_is_zoned(device->bdev)) { in btrfs_get_dev_zones() 227 ret = emulate_report_zones(device, pos, zones, *nr_zones); in btrfs_get_dev_zones() 260 ret = blkdev_report_zones(device->bdev, pos >> SECTOR_SHIFT, *nr_zones, in btrfs_get_dev_zones() 263 btrfs_err_in_rcu(device->fs_info, in btrfs_get_dev_zones() 265 pos, rcu_str_deref(device->name), in btrfs_get_dev_zones() [all …]
|
D | dev-replace.c | 247 struct btrfs_device *device; in btrfs_init_dev_replace_tgtdev() local 275 list_for_each_entry(device, &fs_devices->devices, dev_list) { in btrfs_init_dev_replace_tgtdev() 276 if (device->bdev == bdev) { in btrfs_init_dev_replace_tgtdev() 293 device = btrfs_alloc_device(NULL, &devid, NULL); in btrfs_init_dev_replace_tgtdev() 294 if (IS_ERR(device)) { in btrfs_init_dev_replace_tgtdev() 295 ret = PTR_ERR(device); in btrfs_init_dev_replace_tgtdev() 301 btrfs_free_device(device); in btrfs_init_dev_replace_tgtdev() 305 rcu_assign_pointer(device->name, name); in btrfs_init_dev_replace_tgtdev() 306 ret = lookup_bdev(device_path, &device->devt); in btrfs_init_dev_replace_tgtdev() 310 set_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_init_dev_replace_tgtdev() [all …]
|
D | sysfs.c | 1384 struct btrfs_device *device; in btrfs_sysfs_remove_fs_devices() local 1387 list_for_each_entry(device, &fs_devices->devices, dev_list) in btrfs_sysfs_remove_fs_devices() 1388 btrfs_sysfs_remove_device(device); in btrfs_sysfs_remove_fs_devices() 1391 list_for_each_entry(device, &seed->devices, dev_list) in btrfs_sysfs_remove_fs_devices() 1392 btrfs_sysfs_remove_device(device); in btrfs_sysfs_remove_fs_devices() 1625 void btrfs_sysfs_remove_device(struct btrfs_device *device) in btrfs_sysfs_remove_device() argument 1633 devices_kobj = device->fs_info->fs_devices->devices_kobj; in btrfs_sysfs_remove_device() 1636 if (device->bdev) in btrfs_sysfs_remove_device() 1637 sysfs_remove_link(devices_kobj, bdev_kobj(device->bdev)->name); in btrfs_sysfs_remove_device() 1639 if (device->devid_kobj.state_initialized) { in btrfs_sysfs_remove_device() [all …]
|
D | super.c | 1171 struct btrfs_device *device = NULL; in btrfs_parse_device_options() local 1201 device = btrfs_scan_one_device(device_name, flags, in btrfs_parse_device_options() 1204 if (IS_ERR(device)) { in btrfs_parse_device_options() 1205 error = PTR_ERR(device); in btrfs_parse_device_options() 1754 struct btrfs_device *device = NULL; in btrfs_mount_root() local 1799 device = btrfs_scan_one_device(device_name, mode, fs_type); in btrfs_mount_root() 1800 if (IS_ERR(device)) { in btrfs_mount_root() 1802 error = PTR_ERR(device); in btrfs_mount_root() 1806 fs_devices = device->fs_devices; in btrfs_mount_root() 2225 struct btrfs_device *device; in btrfs_calc_avail_data_space() local [all …]
|
D | volumes.h | 76 #define btrfs_device_data_ordered_init(device) \ argument 77 seqcount_init(&device->data_seqcount) 79 #define btrfs_device_data_ordered_init(device) do { } while (0) argument 404 struct btrfs_device *device; member 633 void btrfs_assign_next_active_device(struct btrfs_device *device, 645 void btrfs_free_device(struct btrfs_device *device); 652 struct btrfs_device *device, u64 new_size); 655 int btrfs_shrink_device(struct btrfs_device *device, u64 new_size); 669 int find_free_dev_extent(struct btrfs_device *device, u64 num_bytes,
|
D | sysfs.h | 17 int btrfs_sysfs_add_device(struct btrfs_device *device); 18 void btrfs_sysfs_remove_device(struct btrfs_device *device); 34 void btrfs_sysfs_update_devid(struct btrfs_device *device);
|
D | check-integrity.c | 312 struct btrfs_device *device, 575 struct btrfs_device *device; in btrfsic_process_superblock() local 584 list_for_each_entry(device, dev_head, dev_list) { in btrfsic_process_superblock() 588 if (!device->bdev || !device->name) in btrfsic_process_superblock() 591 dev_state = btrfsic_dev_state_lookup(device->bdev->bd_dev); in btrfsic_process_superblock() 595 state, dev_state, device, i, in btrfsic_process_superblock() 699 struct btrfs_device *device, in btrfsic_process_superblock_dev_mirror() argument 709 struct block_device *const superblock_bdev = device->bdev; in btrfsic_process_superblock_dev_mirror() 716 if (dev_bytenr + BTRFS_SUPER_INFO_SIZE > device->commit_total_bytes) in btrfsic_process_superblock_dev_mirror() 727 memcmp(device->uuid, super_tmp->dev_item.uuid, BTRFS_UUID_SIZE) || in btrfsic_process_superblock_dev_mirror() [all …]
|
D | disk-io.c | 3917 struct btrfs_device *device = bio->bi_private; in btrfs_end_super_write() local 3926 btrfs_warn_rl_in_rcu(device->fs_info, in btrfs_end_super_write() 3928 rcu_str_deref(device->name), in btrfs_end_super_write() 3932 btrfs_dev_stat_inc_and_print(device, in btrfs_end_super_write() 4034 static int write_dev_supers(struct btrfs_device *device, in write_dev_supers() argument 4037 struct btrfs_fs_info *fs_info = device->fs_info; in write_dev_supers() 4038 struct address_space *mapping = device->bdev->bd_inode->i_mapping; in write_dev_supers() 4056 ret = btrfs_sb_log_location(device, i, WRITE, &bytenr); in write_dev_supers() 4060 btrfs_err(device->fs_info, in write_dev_supers() 4067 device->commit_total_bytes) in write_dev_supers() [all …]
|
/fs/smb/client/ |
D | smbdirect.c | 243 ib_event_msg(event->event), event->device->name, info); in smbd_qp_async_error_upcall() 283 ib_dma_unmap_single(request->info->id->device, in send_done() 463 wc->qp->device, in recv_done() 640 if (!frwr_is_supported(&info->id->device->attrs)) { in smbd_ia_open() 643 info->id->device->attrs.device_cap_flags, in smbd_ia_open() 644 info->id->device->attrs.max_fast_reg_page_list_len); in smbd_ia_open() 650 info->id->device->attrs.max_fast_reg_page_list_len); in smbd_ia_open() 652 if (info->id->device->attrs.kernel_cap_flags & IBK_SG_GAPS_REG) in smbd_ia_open() 655 info->pd = ib_alloc_pd(info->id->device, 0); in smbd_ia_open() 703 info->id->device, (void *)packet, in smbd_post_send_negotiate_req() [all …]
|
/fs/smb/server/ |
D | transport_rdma.c | 269 ib_dma_unmap_single(t->cm_id->device, recvmsg->sge.addr, in put_recvmsg() 295 ib_dma_unmap_single(t->cm_id->device, recvmsg->sge.addr, in put_empty_recvmsg() 480 ib_dma_unmap_single(t->cm_id->device, in smb_direct_free_sendmsg() 484 ib_dma_unmap_page(t->cm_id->device, in smb_direct_free_sendmsg() 558 ib_dma_sync_single_for_cpu(wc->qp->device, recvmsg->sge.addr, in recv_done() 645 recvmsg->sge.addr = ib_dma_map_single(t->cm_id->device, in smb_direct_post_recv() 648 ret = ib_dma_mapping_error(t->cm_id->device, recvmsg->sge.addr); in smb_direct_post_recv() 663 ib_dma_unmap_single(t->cm_id->device, in smb_direct_post_recv() 1061 sendmsg->sge[0].addr = ib_dma_map_single(t->cm_id->device, in smb_direct_create_header() 1065 ret = ib_dma_mapping_error(t->cm_id->device, sendmsg->sge[0].addr); in smb_direct_create_header() [all …]
|
/fs/proc/ |
D | Kconfig | 53 After kernel panic, device drivers can collect the device 56 Note that the device driver must be present in the crash 57 recovery kernel's initramfs to collect its underlying device 60 If you say Y here, the collected device dumps will be added 61 as ELF notes to /proc/vmcore. You can still disable device
|
D | consoles.c | 33 if (con->device) { in show_console_dev() 36 driver = con->device(con, &index); in show_console_dev()
|
/fs/cramfs/ |
D | Kconfig | 28 bool "Support CramFs image over a regular block device" if EXPERT 33 block device such a disk partition or a ramdisk. 42 like flash) instead of going through the block device layer. 47 MTD device capable of direct memory mapping e.g. from
|
/fs/pstore/ |
D | Kconfig | 174 tristate "Log panic/oops to a block device" 188 string "block device identifier" 192 Which block device should be used for pstore/blk. 195 1) <hex_major><hex_minor> device number in hexadecimal representation, 197 2) /dev/<disk_name> represents the device name of disk 198 3) /dev/<disk_name><decimal> represents the device name and number 199 of partition - device number of disk plus the partition number 210 7) <major>:<minor> major and minor number of the device separated by
|
D | pmsg.c | 49 static char *pmsg_devnode(struct device *dev, umode_t *mode) in pmsg_devnode() 58 struct device *pmsg_device; in pstore_register_pmsg()
|
/fs/efs/ |
D | inode.c | 53 dev_t device; in efs_iget() local 122 device = 0; in efs_iget() 124 device = MKDEV(sysv_major(rdev), sysv_minor(rdev)); in efs_iget() 126 device = old_decode_dev(rdev); in efs_iget() 163 init_special_inode(inode, inode->i_mode, device); in efs_iget()
|
/fs/fuse/ |
D | cuse.c | 63 struct device *dev; /* device representing @cdev */ 297 static void cuse_gendev_release(struct device *dev) in cuse_gendev_release() 327 struct device *dev; in cuse_process_init_reply() 577 static ssize_t cuse_class_waiting_show(struct device *dev, in cuse_class_waiting_show() 586 static ssize_t cuse_class_abort_store(struct device *dev, in cuse_class_abort_store()
|
D | Kconfig | 22 tristate "Character device in Userspace support" 28 If you want to develop or use a userspace character device
|
/fs/sysfs/ |
D | Kconfig | 17 /sbin/hotplug uses device and object attributes in sysfs to assist in 21 partition. If sysfs is disabled you must specify the boot device on
|
/fs/gfs2/ |
D | Kconfig | 12 Allows a cluster of computers to simultaneously use a block device 14 and writes to the block device like a local filesystem, but also uses
|
/fs/jbd2/ |
D | Kconfig | 18 To compile this device as a module, choose M here. The module will be 27 potentially any other filesystem/device using JBD2), this option
|
/fs/romfs/ |
D | Kconfig | 30 bool "Block device-backed ROM file system support" 46 NOMMU conditions if the underlying device is directly addressable by
|
/fs/squashfs/ |
D | Kconfig | 184 bool "Use 4K device block size?" 188 to 1K or the smallest block size supported by the block device 196 Using a 4K device block size may also improve overall I/O 200 Setting this option will force Squashfs to use a 4K device block
|