diff options
author | Mateusz Guzik <mjguzik@gmail.com> | 2023-08-22 01:51:45 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-08-25 02:20:32 +0300 |
commit | 52ae298e3e5c9be5bb95e1c6d9199e5210f2a156 (patch) | |
tree | 7dacdd4df5adbc90a4093a920bf8d22e6c8b891a | |
parent | 432af5c966667f12c7af38fb3b2cd52eef0c47b4 (diff) | |
download | linux-52ae298e3e5c9be5bb95e1c6d9199e5210f2a156.tar.xz |
maple_tree: shrink struct maple_tree
Pack the members of struct maple_tree to avoid holes on 64-bit. The size
shrinks from 24 to 16 bytes which will save eight bytes in every structure
which embeds it.
[willy@infradead.org: changelog alterations]
Link: https://lkml.kernel.org/r/20230821225145.2169848-1-mjguzik@gmail.com
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r-- | include/linux/maple_tree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/maple_tree.h b/include/linux/maple_tree.h index c962af188681..e41c70ac7744 100644 --- a/include/linux/maple_tree.h +++ b/include/linux/maple_tree.h @@ -220,8 +220,8 @@ struct maple_tree { spinlock_t ma_lock; lockdep_map_p ma_external_lock; }; - void __rcu *ma_root; unsigned int ma_flags; + void __rcu *ma_root; }; /** |