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. [[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]>
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)