Re: [PATCH 3/3] mm/gup: refactor and simplify try_get_page()

From
Christoph Hellwig <hch@infradead.org>
Date
2021-08-09 06:31:54
Also in
lkml
Reply to
John Hubbard, 2021-08-08
On Sun, Aug 08, 2021 at 04:50:18PM -0700, John Hubbard wrote:
quoted hunk ↗ jump to hunk
+/*
+ * This has the same functionality as try_get_compound_head(), just with a
+ * slightly different API.
+ */
 static inline __must_check bool try_get_page(struct page *page)
 {
+	return try_get_compound_head(page, 1) != NULL;
What about removing try_get_page entirely instead?

Thread (11 messages) 11 messages, 3 authors, last reply 2021-08-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help