mm: combine LRU and main union in struct page
authorMatthew Wilcox <[email protected]>
Fri, 8 Jun 2018 00:08:50 +0000 (17:08 -0700)
committerLinus Torvalds <[email protected]>
Fri, 8 Jun 2018 00:34:37 +0000 (17:34 -0700)
commit4da1984edbbed0ffc961006d265d78a7b0095ea4
treee9781a716119438adc0c241e5fbba2b9823f9c10
parentb7ccc7f8c643de0b71cd2da3245d0c27038a8dd7
mm: combine LRU and main union in struct page

This gives us five words of space in a single union in struct page.  The
compound_mapcount moves position (from offset 24 to offset 20) on 64-bit
systems, but that does not seem likely to cause any trouble.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Jérôme Glisse <[email protected]>
Cc: Lai Jiangshan <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: Randy Dunlap <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/mm_types.h
mm/page_alloc.c