aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <[email protected]>2023-08-22 00:51:45 +0200
committerAndrew Morton <[email protected]>2023-08-24 16:20:32 -0700
commit52ae298e3e5c9be5bb95e1c6d9199e5210f2a156 (patch)
tree7dacdd4df5adbc90a4093a920bf8d22e6c8b891a
parent432af5c966667f12c7af38fb3b2cd52eef0c47b4 (diff)
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. [[email protected]: changelog alterations] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Mateusz Guzik <[email protected]> Reviewed-by: Liam R. Howlett <[email protected]> Reviewed-by: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
-rw-r--r--include/linux/maple_tree.h2
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;
};
/**