From: David Sterba Date: Tue, 21 Nov 2023 01:50:21 +0000 (+0100) Subject: btrfs: remove unused btrfs_root::type X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=46524fab690ea5ee7b7a8c6b788d06765cdf8db1;p=linux.git btrfs: remove unused btrfs_root::type Looks like the struct member was added in 2007 in 2.6.29 in commit 87ee04eb0f2f ("Btrfs: Add simple stripe size parameter") but hasn't been used at all since. So let's remove it. This was found by tool https://github.com/jirislaby/clang-struct, then build tested after removing the struct member. Reviewed-by: Qu Wenruo Reviewed-by: Anand Jain Reviewed-by: Johannes Thumshirn Signed-off-by: David Sterba --- diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 9c0800f5bdcb6..54fd4eb92745c 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -212,8 +212,6 @@ struct btrfs_root { u64 last_trans; - u32 type; - u64 free_objectid; struct btrfs_key defrag_progress;