mm: Add arch_make_folio_accessible()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 24 Apr 2021 18:50:36 +0000 (14:50 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 18 Oct 2021 11:49:39 +0000 (07:49 -0400)
commitb424de33c42dbd03e39ca8f521126d39acb6c335
treee97ba86596354fc1f8e88caad8ff103e3d647eea
parent53c36de0701f2fdda6b1d209dc89e2bad4a9c7b8
mm: Add arch_make_folio_accessible()

As a default implementation, call arch_make_page_accessible n times.
If an architecture can do better, it can override this.

Also move the default implementation of arch_make_page_accessible()
from gfp.h to mm.h.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Howells <dhowells@redhat.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
include/linux/gfp.h
include/linux/mm.h