mm/hugetlb: Use try_grab_folio() instead of try_grab_compound_head()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 8 Jan 2022 05:15:04 +0000 (00:15 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Mar 2022 16:56:35 +0000 (12:56 -0400)
commit822951d84684d7a0c4f45e7231c960e7fe786d8f
treec589a9290844c64594e9a5ca4f5198ebbe96505a
parentd8ddc099c6b3dde887f9484da9a6677709d68b61
mm/hugetlb: Use try_grab_folio() instead of try_grab_compound_head()

follow_hugetlb_page() only cares about success or failure, so it doesn't
need to know the type of the returned pointer, only whether it's NULL
or not.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
include/linux/mm.h
mm/gup.c
mm/hugetlb.c