diff options
author | 2022-01-08 00:15:04 -0500 | |
---|---|---|
committer | 2022-03-21 12:56:35 -0400 | |
commit | 822951d84684d7a0c4f45e7231c960e7fe786d8f (patch) | |
tree | c589a9290844c64594e9a5ca4f5198ebbe96505a /include/linux/mm.h | |
parent | mm/gup: Add gup_put_folio() (diff) | |
download | linux-822951d84684d7a0c4f45e7231c960e7fe786d8f.tar.gz linux-822951d84684d7a0c4f45e7231c960e7fe786d8f.tar.bz2 linux-822951d84684d7a0c4f45e7231c960e7fe786d8f.zip |
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>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index b764057022c8..dca5c99395c9 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1124,9 +1124,6 @@ static inline void get_page(struct page *page) } bool __must_check try_grab_page(struct page *page, unsigned int flags); -struct page *try_grab_compound_head(struct page *page, int refs, - unsigned int flags); - static inline __must_check bool try_get_page(struct page *page) { |