mm: support order-1 folios in the page cache
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 26 Feb 2024 20:55:28 +0000 (15:55 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 5 Mar 2024 01:01:19 +0000 (17:01 -0800)
commit8897277acfef7f70fdecc054073bea2542fc7a1b
tree2e00108c1b272998e58142cf10cd249e35dea4ea
parent319a624ec2b79db7a0b0a2a2a61e3aa5c96eabfc
mm: support order-1 folios in the page cache

Folios of order 1 have no space to store the deferred list.  This is not a
problem for the page cache as file-backed folios are never placed on the
deferred list.  All we need to do is prevent the core MM from touching the
deferred list for order 1 folios and remove the code which prevented us
from allocating order 1 folios.

Link: https://lore.kernel.org/linux-mm/90344ea7-4eec-47ee-5996-0c22f42d6a6a@google.com/
Link: https://lkml.kernel.org/r/20240226205534.1603748-3-zi.yan@sent.com
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Zi Yan <ziy@nvidia.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Cc: Michal Koutny <mkoutny@suse.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Yang Shi <shy828301@gmail.com>
Cc: Yu Zhao <yuzhao@google.com>
Cc: Zach O'Keefe <zokeefe@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/filemap.c
mm/huge_memory.c
mm/internal.h
mm/readahead.c