Home
last modified time | relevance | path

Searched refs:dev_item (Results 1 – 4 of 4) sorted by relevance

/linux/fs/btrfs/
H A Dvolumes.c664 devid = btrfs_stack_device_id(&disk_super->dev_item); in btrfs_open_one_device()
668 if (memcmp(device->uuid, disk_super->dev_item.uuid, BTRFS_UUID_SIZE)) in btrfs_open_one_device()
858 u64 devid = btrfs_stack_device_id(&disk_super->dev_item); in device_list_add()
905 .uuid = disk_super->dev_item.uuid, in device_list_add()
934 disk_super->dev_item.uuid, path); in device_list_add()
2005 struct btrfs_dev_item *dev_item; in btrfs_add_dev_item() local
2020 &key, sizeof(*dev_item)); in btrfs_add_dev_item()
2026 dev_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dev_item); in btrfs_add_dev_item()
2028 btrfs_set_device_id(leaf, dev_item, device->devid); in btrfs_add_dev_item()
2029 btrfs_set_device_generation(leaf, dev_item, 0); in btrfs_add_dev_item()
[all …]
H A Dprint-tree.c69 struct btrfs_dev_item *dev_item) in print_dev_item() argument
72 btrfs_device_id(eb, dev_item), in print_dev_item()
73 btrfs_device_total_bytes(eb, dev_item), in print_dev_item()
74 btrfs_device_bytes_used(eb, dev_item)); in print_dev_item()
H A Ddisk-io.c2449 if (memcmp(fs_info->fs_devices->metadata_uuid, sb->dev_item.fsid, in btrfs_validate_super()
2453 fs_info->fs_devices->metadata_uuid, sb->dev_item.fsid); in btrfs_validate_super()
4013 struct btrfs_dev_item *dev_item; in write_all_supers() local
4031 dev_item = &sb->dev_item; in write_all_supers()
4057 btrfs_set_stack_device_generation(dev_item, 0); in write_all_supers()
4058 btrfs_set_stack_device_type(dev_item, dev->type); in write_all_supers()
4059 btrfs_set_stack_device_id(dev_item, dev->devid); in write_all_supers()
4060 btrfs_set_stack_device_total_bytes(dev_item, in write_all_supers()
4062 btrfs_set_stack_device_bytes_used(dev_item, in write_all_supers()
4064 btrfs_set_stack_device_io_align(dev_item, dev->io_align); in write_all_supers()
[all …]
/linux/include/uapi/linux/
H A Dbtrfs_tree.h706 struct btrfs_dev_item dev_item; member