diff options
| author | Filipe Manana <fdmanana@suse.com> | 2026-04-15 15:06:13 +0100 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-06-08 15:53:29 +0200 |
| commit | 08d9e2162ca2825565e21422f95caa9f5f4b900b (patch) | |
| tree | 4ea1843300c36e5acabbe734d0ccb5cd65c037db | |
| parent | acef2bf43aa222e7d5396ba889789e2ce14f2062 (diff) | |
| download | linux-stable-08d9e2162ca2825565e21422f95caa9f5f4b900b.tar.gz linux-stable-08d9e2162ca2825565e21422f95caa9f5f4b900b.zip | |
btrfs: reduce size of struct btrfs_free_space_ctl
We have a 4 bytes hole in the structure, reorder some fields so that we
eliminate the hole and reduce the structure size from 144 bytes down to
136 bytes. This way on a 4K page system, we can fit 30 structures per
page instead of 28.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
| -rw-r--r-- | fs/btrfs/free-space-cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/free-space-cache.h b/fs/btrfs/free-space-cache.h index 2ee0b876723a..c5d0f3e056cc 100644 --- a/fs/btrfs/free-space-cache.h +++ b/fs/btrfs/free-space-cache.h @@ -74,13 +74,13 @@ enum { }; struct btrfs_free_space_ctl { - spinlock_t tree_lock; struct rb_root free_space_offset; struct rb_root_cached free_space_bytes; - u64 free_space; + spinlock_t tree_lock; int extents_thresh; int free_extents; int total_bitmaps; + u64 free_space; s32 discardable_extents[BTRFS_STAT_NR_ENTRIES]; s64 discardable_bytes[BTRFS_STAT_NR_ENTRIES]; const struct btrfs_free_space_op *op; |
