]> www.infradead.org Git - users/willy/xarray.git/commit
mm: add is_huge_zero_folio()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 26 Mar 2024 20:28:22 +0000 (20:28 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 26 Apr 2024 03:56:18 +0000 (20:56 -0700)
commit5beaee54a324ba1fe307e341ec825d5d099f4091
treeec2b731c12b16589ccad98101de58594805006f2
parent4d30eac3744d195ac43fbc36117d1e5de447b1ca
mm: add is_huge_zero_folio()

This is the folio equivalent of is_huge_zero_page().  It doesn't add any
efficiency, but it does prevent the caller from passing a tail page and
getting confused when the predicate returns false.

Link: https://lkml.kernel.org/r/20240326202833.523759-3-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/page.c
include/linux/huge_mm.h
mm/huge_memory.c
mm/mempolicy.c
mm/swap.c
mm/swap_state.c
mm/userfaultfd.c