From 4cbafa2ff3510cd64a83b62d3bec9f785cfbb695 Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Fri, 22 May 2026 18:53:51 +0930 Subject: [PATCH] btrfs: remove btrfs_chunk_map::io_(align|width) members Those two members are read from on-disk metadata, but never utilized. And for new chunks we always set those members to BTRFS_STRIPE_LEN anyway. Thus there is no need to keep them inside btrfs_chunk_map. Signed-off-by: Qu Wenruo Signed-off-by: David Sterba --- fs/btrfs/volumes.c | 4 ---- fs/btrfs/volumes.h | 2 -- 2 files changed, 6 deletions(-) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 3d1063bc73f8..b68ede97e8c8 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -6033,8 +6033,6 @@ static struct btrfs_block_group *create_chunk(struct btrfs_trans_handle *trans, map->chunk_len = ctl->chunk_size; map->stripe_size = ctl->stripe_size; map->type = type; - map->io_align = BTRFS_STRIPE_LEN; - map->io_width = BTRFS_STRIPE_LEN; map->sub_stripes = ctl->sub_stripes; map->num_stripes = ctl->num_stripes; @@ -7597,8 +7595,6 @@ static int read_one_chunk(struct btrfs_key *key, struct extent_buffer *leaf, map->start = logical; map->chunk_len = length; map->num_stripes = num_stripes; - map->io_width = btrfs_chunk_io_width(leaf, chunk); - map->io_align = btrfs_chunk_io_align(leaf, chunk); map->type = type; /* * We can't use the sub_stripes value, as for profiles other than diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index 63be45c3298c..30597e1fd240 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h @@ -633,8 +633,6 @@ struct btrfs_chunk_map { u64 chunk_len; u64 stripe_size; u64 type; - int io_align; - int io_width; int num_stripes; int sub_stripes; struct btrfs_io_stripe stripes[];