Skip to content

Commit 52ae298

Browse files
mjguzikakpm00
authored andcommitted
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>
1 parent 432af5c commit 52ae298

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/maple_tree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ struct maple_tree {
220220
spinlock_t ma_lock;
221221
lockdep_map_p ma_external_lock;
222222
};
223-
void __rcu *ma_root;
224223
unsigned int ma_flags;
224+
void __rcu *ma_root;
225225
};
226226

227227
/**

0 commit comments

Comments
 (0)