Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 50) sorted by relevance

12

/fs/btrfs/
Dvolumes.c223 static void btrfs_dev_stat_print_on_load(struct btrfs_device *device);
372 void btrfs_free_device(struct btrfs_device *device) in btrfs_free_device() argument
374 WARN_ON(!list_empty(&device->post_commit_list)); in btrfs_free_device()
375 rcu_string_free(device->name); in btrfs_free_device()
376 extent_io_tree_release(&device->alloc_state); in btrfs_free_device()
377 bio_put(device->flush_bio); in btrfs_free_device()
378 kfree(device); in btrfs_free_device()
383 struct btrfs_device *device; in free_fs_devices() local
387 device = list_entry(fs_devices->devices.next, in free_fs_devices()
389 list_del(&device->dev_list); in free_fs_devices()
[all …]
Ddev-replace.c243 struct btrfs_device *device; in btrfs_init_dev_replace_tgtdev() local
264 list_for_each_entry(device, &fs_info->fs_devices->devices, dev_list) { in btrfs_init_dev_replace_tgtdev()
265 if (device->bdev == bdev) { in btrfs_init_dev_replace_tgtdev()
283 device = btrfs_alloc_device(NULL, &devid, NULL); in btrfs_init_dev_replace_tgtdev()
284 if (IS_ERR(device)) { in btrfs_init_dev_replace_tgtdev()
285 ret = PTR_ERR(device); in btrfs_init_dev_replace_tgtdev()
291 btrfs_free_device(device); in btrfs_init_dev_replace_tgtdev()
295 rcu_assign_pointer(device->name, name); in btrfs_init_dev_replace_tgtdev()
297 set_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_init_dev_replace_tgtdev()
298 device->generation = 0; in btrfs_init_dev_replace_tgtdev()
[all …]
Dsysfs.c986 struct btrfs_device *device; in btrfs_sysfs_remove_fs_devices() local
989 list_for_each_entry(device, &fs_devices->devices, dev_list) in btrfs_sysfs_remove_fs_devices()
990 btrfs_sysfs_remove_device(device); in btrfs_sysfs_remove_fs_devices()
993 list_for_each_entry(device, &seed->devices, dev_list) in btrfs_sysfs_remove_fs_devices()
994 btrfs_sysfs_remove_device(device); in btrfs_sysfs_remove_fs_devices()
1233 void btrfs_sysfs_remove_device(struct btrfs_device *device) in btrfs_sysfs_remove_device() argument
1243 devices_kobj = device->fs_info->fs_devices->devices_kobj; in btrfs_sysfs_remove_device()
1246 if (device->bdev) { in btrfs_sysfs_remove_device()
1247 disk = device->bdev->bd_part; in btrfs_sysfs_remove_device()
1252 if (device->devid_kobj.state_initialized) { in btrfs_sysfs_remove_device()
[all …]
Dreada.c71 struct btrfs_device *device; member
272 zone->device = dev; /* our device always sits at index 0 */ in reada_find_zone()
409 dev = re->zones[nzones]->device; in reada_find_extent()
439 dev = re->zones[nzones]->device; in reada_find_extent()
504 radix_tree_delete(&zone->device->reada_extents, index); in reada_extent_put()
534 radix_tree_delete(&zone->device->reada_zones, in reada_zone_release()
590 if (peer && peer->device != zone->device) in reada_peer_zones_set_lock()
733 if (re->zones[i]->device == dev) { in reada_start_machine_dev()
780 struct btrfs_device *device; in reada_start_for_fsdevs() local
784 list_for_each_entry(device, &fs_devices->devices, dev_list) { in reada_start_for_fsdevs()
[all …]
Dvolumes.h42 #define btrfs_device_data_ordered_init(device) \ argument
43 seqcount_init(&device->data_seqcount)
45 #define btrfs_device_data_ordered_init(device) do { } while (0) argument
292 struct btrfs_device *device; member
441 void btrfs_assign_next_active_device(struct btrfs_device *device,
449 void btrfs_free_device(struct btrfs_device *device);
455 struct btrfs_device *device, u64 new_size);
458 int btrfs_shrink_device(struct btrfs_device *device, u64 new_size);
471 int find_free_dev_extent(struct btrfs_device *device, u64 num_bytes,
Dsysfs.h17 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);
Dsuper.c1030 struct btrfs_device *device = NULL; in btrfs_parse_device_options() local
1060 device = btrfs_scan_one_device(device_name, flags, in btrfs_parse_device_options()
1063 if (IS_ERR(device)) { in btrfs_parse_device_options()
1064 error = PTR_ERR(device); in btrfs_parse_device_options()
1614 struct btrfs_device *device = NULL; in btrfs_mount_root() local
1659 device = btrfs_scan_one_device(device_name, mode, fs_type); in btrfs_mount_root()
1660 if (IS_ERR(device)) { in btrfs_mount_root()
1662 error = PTR_ERR(device); in btrfs_mount_root()
1666 fs_devices = device->fs_devices; in btrfs_mount_root()
2060 struct btrfs_device *device; in btrfs_calc_avail_data_space() local
[all …]
Dcheck-integrity.c364 struct btrfs_device *device,
628 struct btrfs_device *device; in btrfsic_process_superblock() local
637 list_for_each_entry(device, dev_head, dev_list) { in btrfsic_process_superblock()
641 if (!device->bdev || !device->name) in btrfsic_process_superblock()
644 dev_state = btrfsic_dev_state_lookup(device->bdev->bd_dev); in btrfsic_process_superblock()
648 state, dev_state, device, i, in btrfsic_process_superblock()
754 struct btrfs_device *device, in btrfsic_process_superblock_dev_mirror() argument
764 struct block_device *const superblock_bdev = device->bdev; in btrfsic_process_superblock_dev_mirror()
771 if (dev_bytenr + BTRFS_SUPER_INFO_SIZE > device->commit_total_bytes) in btrfsic_process_superblock_dev_mirror()
782 memcmp(device->uuid, super_tmp->dev_item.uuid, BTRFS_UUID_SIZE) || in btrfsic_process_superblock_dev_mirror()
[all …]
Ddisk-io.c3500 struct btrfs_device *device = bio->bi_private; in btrfs_end_super_write() local
3509 btrfs_warn_rl_in_rcu(device->fs_info, in btrfs_end_super_write()
3511 rcu_str_deref(device->name), in btrfs_end_super_write()
3515 btrfs_dev_stat_inc_and_print(device, in btrfs_end_super_write()
3597 static int write_dev_supers(struct btrfs_device *device, in write_dev_supers() argument
3600 struct btrfs_fs_info *fs_info = device->fs_info; in write_dev_supers()
3601 struct address_space *mapping = device->bdev->bd_inode->i_mapping; in write_dev_supers()
3619 device->commit_total_bytes) in write_dev_supers()
3631 btrfs_err(device->fs_info, in write_dev_supers()
3650 bio_set_dev(bio, device->bdev); in write_dev_supers()
[all …]
Dextent_map.c364 struct btrfs_device *device = stripe->dev; in extent_map_device_set_bits() local
366 set_extent_bits_nowait(&device->alloc_state, stripe->physical, in extent_map_device_set_bits()
379 struct btrfs_device *device = stripe->dev; in extent_map_device_clear_bits() local
381 __clear_extent_bit(&device->alloc_state, stripe->physical, in extent_map_device_clear_bits()
Dextent-tree.c1306 struct btrfs_device *device = stripe->dev; in btrfs_discard_extent() local
1308 if (!device->bdev) { in btrfs_discard_extent()
1312 req_q = bdev_get_queue(device->bdev); in btrfs_discard_extent()
1316 if (!test_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state)) in btrfs_discard_extent()
1319 ret = btrfs_issue_discard(device->bdev, in btrfs_discard_extent()
5729 static int btrfs_trim_free_extents(struct btrfs_device *device, u64 *trimmed) in btrfs_trim_free_extents() argument
5737 if (!blk_queue_discard(bdev_get_queue(device->bdev))) in btrfs_trim_free_extents()
5741 if (!test_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state)) in btrfs_trim_free_extents()
5745 if (device->total_bytes <= device->bytes_used) in btrfs_trim_free_extents()
5751 struct btrfs_fs_info *fs_info = device->fs_info; in btrfs_trim_free_extents()
[all …]
/fs/cifs/
Dsmbdirect.c243 ib_event_msg(event->event), event->device->name, info); in smbd_qp_async_error_upcall()
282 ib_dma_unmap_single(request->info->id->device, in send_done()
462 wc->qp->device, in recv_done()
639 if (!frwr_is_supported(&info->id->device->attrs)) { in smbd_ia_open()
642 info->id->device->attrs.device_cap_flags, in smbd_ia_open()
643 info->id->device->attrs.max_fast_reg_page_list_len); in smbd_ia_open()
649 info->id->device->attrs.max_fast_reg_page_list_len); in smbd_ia_open()
651 if (info->id->device->attrs.device_cap_flags & IB_DEVICE_SG_GAPS_REG) in smbd_ia_open()
654 info->pd = ib_alloc_pd(info->id->device, 0); in smbd_ia_open()
702 info->id->device, (void *)packet, in smbd_post_send_negotiate_req()
[all …]
/fs/proc/
DKconfig53 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
Dconsoles.c33 if (con->device) { in show_console_dev()
36 driver = con->device(con, &index); in show_console_dev()
/fs/cramfs/
DKconfig28 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/
DKconfig166 tristate "Log panic/oops to a block device"
181 string "block device identifier"
185 Which block device should be used for pstore/blk.
188 1) <hex_major><hex_minor> device number in hexadecimal representation,
190 2) /dev/<disk_name> represents the device name of disk
191 3) /dev/<disk_name><decimal> represents the device name and number
192 of partition - device number of disk plus the partition number
203 7) <major>:<minor> major and minor number of the device separated by
Dpmsg.c49 static char *pmsg_devnode(struct device *dev, umode_t *mode) in pmsg_devnode()
58 struct device *pmsg_device; in pstore_register_pmsg()
/fs/efs/
Dinode.c51 dev_t device; in efs_iget() local
120 device = 0; in efs_iget()
122 device = MKDEV(sysv_major(rdev), sysv_minor(rdev)); in efs_iget()
124 device = old_decode_dev(rdev); in efs_iget()
161 init_special_inode(inode, inode->i_mode, device); in efs_iget()
/fs/fuse/
Dcuse.c63 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()
581 static ssize_t cuse_class_waiting_show(struct device *dev, in cuse_class_waiting_show()
590 static ssize_t cuse_class_abort_store(struct device *dev, in cuse_class_abort_store()
DKconfig22 tristate "Character device in Userspace support"
28 If you want to develop or use a userspace character device
/fs/sysfs/
DKconfig17 /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/
DKconfig12 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/
DKconfig18 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/
DKconfig30 bool "Block device-backed ROM file system support"
46 NOMMU conditions if the underlying device is directly addressable by
/fs/squashfs/
DKconfig184 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

12