• Home
  • Raw
  • Download

Lines Matching refs:dev_item

847 	devid = btrfs_stack_device_id(&disk_super->dev_item);  in btrfs_open_one_device()
851 if (memcmp(device->uuid, disk_super->dev_item.uuid, BTRFS_UUID_SIZE)) in btrfs_open_one_device()
1003 u64 devid = btrfs_stack_device_id(&disk_super->dev_item); in device_list_add()
1052 disk_super->dev_item.uuid, NULL, false); in device_list_add()
1083 disk_super->dev_item.uuid); in device_list_add()
2017 struct btrfs_dev_item *dev_item; in btrfs_add_dev_item() local
2031 &key, sizeof(*dev_item)); in btrfs_add_dev_item()
2036 dev_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dev_item); in btrfs_add_dev_item()
2038 btrfs_set_device_id(leaf, dev_item, device->devid); in btrfs_add_dev_item()
2039 btrfs_set_device_generation(leaf, dev_item, 0); in btrfs_add_dev_item()
2040 btrfs_set_device_type(leaf, dev_item, device->type); in btrfs_add_dev_item()
2041 btrfs_set_device_io_align(leaf, dev_item, device->io_align); in btrfs_add_dev_item()
2042 btrfs_set_device_io_width(leaf, dev_item, device->io_width); in btrfs_add_dev_item()
2043 btrfs_set_device_sector_size(leaf, dev_item, device->sector_size); in btrfs_add_dev_item()
2044 btrfs_set_device_total_bytes(leaf, dev_item, in btrfs_add_dev_item()
2046 btrfs_set_device_bytes_used(leaf, dev_item, in btrfs_add_dev_item()
2048 btrfs_set_device_group(leaf, dev_item, 0); in btrfs_add_dev_item()
2049 btrfs_set_device_seek_speed(leaf, dev_item, 0); in btrfs_add_dev_item()
2050 btrfs_set_device_bandwidth(leaf, dev_item, 0); in btrfs_add_dev_item()
2051 btrfs_set_device_start_offset(leaf, dev_item, 0); in btrfs_add_dev_item()
2053 ptr = btrfs_device_uuid(dev_item); in btrfs_add_dev_item()
2055 ptr = btrfs_device_fsid(dev_item); in btrfs_add_dev_item()
2491 devid = btrfs_stack_device_id(&disk_super->dev_item); in btrfs_find_device_by_path()
2492 dev_uuid = disk_super->dev_item.uuid; in btrfs_find_device_by_path()
2613 struct btrfs_dev_item *dev_item; in btrfs_finish_sprout() local
2653 dev_item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_finish_sprout()
2655 devid = btrfs_device_id(leaf, dev_item); in btrfs_finish_sprout()
2656 read_extent_buffer(leaf, dev_uuid, btrfs_device_uuid(dev_item), in btrfs_finish_sprout()
2658 read_extent_buffer(leaf, fs_uuid, btrfs_device_fsid(dev_item), in btrfs_finish_sprout()
2665 btrfs_set_device_generation(leaf, dev_item, in btrfs_finish_sprout()
2914 struct btrfs_dev_item *dev_item; in btrfs_update_device() local
2936 dev_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dev_item); in btrfs_update_device()
2938 btrfs_set_device_id(leaf, dev_item, device->devid); in btrfs_update_device()
2939 btrfs_set_device_type(leaf, dev_item, device->type); in btrfs_update_device()
2940 btrfs_set_device_io_align(leaf, dev_item, device->io_align); in btrfs_update_device()
2941 btrfs_set_device_io_width(leaf, dev_item, device->io_width); in btrfs_update_device()
2942 btrfs_set_device_sector_size(leaf, dev_item, device->sector_size); in btrfs_update_device()
2943 btrfs_set_device_total_bytes(leaf, dev_item, in btrfs_update_device()
2945 btrfs_set_device_bytes_used(leaf, dev_item, in btrfs_update_device()
7021 struct btrfs_dev_item *dev_item, in fill_device_from_item() argument
7026 device->devid = btrfs_device_id(leaf, dev_item); in fill_device_from_item()
7027 device->disk_total_bytes = btrfs_device_total_bytes(leaf, dev_item); in fill_device_from_item()
7030 device->bytes_used = btrfs_device_bytes_used(leaf, dev_item); in fill_device_from_item()
7032 device->type = btrfs_device_type(leaf, dev_item); in fill_device_from_item()
7033 device->io_align = btrfs_device_io_align(leaf, dev_item); in fill_device_from_item()
7034 device->io_width = btrfs_device_io_width(leaf, dev_item); in fill_device_from_item()
7035 device->sector_size = btrfs_device_sector_size(leaf, dev_item); in fill_device_from_item()
7039 ptr = btrfs_device_uuid(dev_item); in fill_device_from_item()
7099 struct btrfs_dev_item *dev_item) in read_one_dev() argument
7109 devid = btrfs_device_id(leaf, dev_item); in read_one_dev()
7110 read_extent_buffer(leaf, dev_uuid, btrfs_device_uuid(dev_item), in read_one_dev()
7112 read_extent_buffer(leaf, fs_uuid, btrfs_device_fsid(dev_item), in read_one_dev()
7180 btrfs_device_generation(leaf, dev_item)) in read_one_dev()
7184 fill_device_from_item(leaf, dev_item, device); in read_one_dev()
7435 struct btrfs_dev_item *dev_item; in btrfs_read_chunk_tree() local
7436 dev_item = btrfs_item_ptr(leaf, slot, in btrfs_read_chunk_tree()
7438 ret = read_one_dev(leaf, dev_item); in btrfs_read_chunk_tree()