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>
Thu, 17 Feb 2022 22:05:52 +0000 (17:05 -0500)
commit84c9c6790c7c21714e48d78bc522ae34ecedc88e
treefe49c394b02113d8be91cb53d72fa2c64e2ea4bc
parentaac2c5fa2f571fbb20c02d05942dc0871c259955
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