summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2023-11-21 02:50:21 +0100
committerDavid Sterba <dsterba@suse.com>2023-12-15 20:27:01 +0100
commit46524fab690ea5ee7b7a8c6b788d06765cdf8db1 (patch)
treec2a61362f71fdc9c686517787be504ac784107e6 /fs/btrfs/ctree.h
parent49542050b1a172c67005e4d63f90429b4ae50b01 (diff)
downloadlinux-46524fab690ea5ee7b7a8c6b788d06765cdf8db1.tar.gz
linux-46524fab690ea5ee7b7a8c6b788d06765cdf8db1.tar.bz2
linux-46524fab690ea5ee7b7a8c6b788d06765cdf8db1.zip
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 <wqu@suse.com> Reviewed-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 9c0800f5bdcb..54fd4eb92745 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;