]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm: move page->deferred_list to folio->_deferred_list
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 11 Jan 2023 14:29:10 +0000 (14:29 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 3 Feb 2023 06:33:00 +0000 (22:33 -0800)
commit4375a553f46c6cb66d1711d8f514dfdf34ce74b0
tree564bd1c2948ac25cd7ef406f3073ddc53d67430e
parenta8d55327ccc1f999a5fba4eee67ed08bd36493ad
mm: move page->deferred_list to folio->_deferred_list

Remove the entire block of definitions for the second tail page, and add
the deferred list to the struct folio.  This actually moves _deferred_list
to a different offset in struct folio because I don't see a need to
include the padding.

This lets us use list_for_each_entry_safe() in deferred_split_scan()
and avoid a number of calls to compound_head().

Link: https://lkml.kernel.org/r/20230111142915.1001531-25-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/huge_mm.h
include/linux/mm_types.h
mm/huge_memory.c