summaryrefslogtreecommitdiffstats
path: root/mm/huge_memory.c
diff options
context:
space:
mode:
authorMatthew Wilcox2018-06-08 02:08:39 +0200
committerLinus Torvalds2018-06-08 02:34:37 +0200
commit66a6ffd2af42b0bafaecccbd7c1c30d386de21ab (patch)
treee84faf8badf6ca15db9380b8b743a675156be828 /mm/huge_memory.c
parentmm: move _refcount out of struct page union (diff)
downloadkernel-qcow2-linux-66a6ffd2af42b0bafaecccbd7c1c30d386de21ab.tar.gz
kernel-qcow2-linux-66a6ffd2af42b0bafaecccbd7c1c30d386de21ab.tar.xz
kernel-qcow2-linux-66a6ffd2af42b0bafaecccbd7c1c30d386de21ab.zip
mm: combine first three unions in struct page
By combining these three one-word unions into one three-word union, we make it easier for users to add their own multi-word fields to struct page, as well as making it obvious that SLUB needs to keep its double-word alignment for its freelist & counters. No field moves position; verified with pahole. Link: http://lkml.kernel.org/r/20180518194519.3820-8-willy@infradead.org Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Acked-by: Vlastimil Babka <vbabka@suse.cz> Cc: Christoph Lameter <cl@linux.com> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Jérôme Glisse <jglisse@redhat.com> Cc: Lai Jiangshan <jiangshanlai@gmail.com> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: Andrey Ryabinin <aryabinin@virtuozzo.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/huge_memory.c')
0 files changed, 0 insertions, 0 deletions