The new member will be utilized by various path that no direct
btrfs_chunk_map is available, but a stripe length is still required.
The new member is located inside a hole between @refs and @fs_info, so
no size increase for btrfs_io_context.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
ret = -ENOMEM;
goto out;
}
+ bioc->stripe_len = map->stripe_len;
bioc->map_type = map->type;
bioc->use_rst = io_geom.use_rst;
*/
struct btrfs_io_context {
refcount_t refs;
+ u32 stripe_len;
struct btrfs_fs_info *fs_info;
/* Taken from struct btrfs_chunk_map::type. */
u64 map_type;