Thread (11 messages) 11 messages, 3 authors, 2021-08-12

Re: [PATCH v2 3/3] mm/gup: Remove try_get_page(), call try_get_compound_head() directly

From: Christoph Hellwig <hch@lst.de>
Date: 2021-08-12 09:22:14
Also in: linux-fsdevel, linux-s390, lkml

On Wed, Aug 11, 2021 at 12:05:42AM -0700, John Hubbard wrote:
-		if (unlikely(!try_get_page(page)))
+		if (unlikely(try_get_compound_head(page, 1) == NULL))
Why not a simple ! instead of the == NULL?

Otherwise looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help