Lines Matching refs:dev_item
2408 if (memcmp(fs_info->fs_devices->metadata_uuid, sb->dev_item.fsid, in btrfs_validate_super()
2412 fs_info->fs_devices->metadata_uuid, sb->dev_item.fsid); in btrfs_validate_super()
4065 struct btrfs_dev_item *dev_item; in write_all_supers() local
4083 dev_item = &sb->dev_item; in write_all_supers()
4109 btrfs_set_stack_device_generation(dev_item, 0); in write_all_supers()
4110 btrfs_set_stack_device_type(dev_item, dev->type); in write_all_supers()
4111 btrfs_set_stack_device_id(dev_item, dev->devid); in write_all_supers()
4112 btrfs_set_stack_device_total_bytes(dev_item, in write_all_supers()
4114 btrfs_set_stack_device_bytes_used(dev_item, in write_all_supers()
4116 btrfs_set_stack_device_io_align(dev_item, dev->io_align); in write_all_supers()
4117 btrfs_set_stack_device_io_width(dev_item, dev->io_width); in write_all_supers()
4118 btrfs_set_stack_device_sector_size(dev_item, dev->sector_size); in write_all_supers()
4119 memcpy(dev_item->uuid, dev->uuid, BTRFS_UUID_SIZE); in write_all_supers()
4120 memcpy(dev_item->fsid, dev->fs_devices->metadata_uuid, in write_all_supers()