]> git.baikalelectronics.ru Git - kernel.git/commit
mm/gup: Add try_get_folio() and try_grab_folio()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 4 Feb 2022 15:27:40 +0000 (10:27 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Mar 2022 16:56:35 +0000 (12:56 -0400)
commitde9b8c4f55b37c4e907e2ab12ee400a18927ca44
tree2e842c73049d93126fe1fbbd16cd72cd5eacbc97
parent03ed4647814e2b4c66235080f17b38def441f158
mm/gup: Add try_get_folio() and try_grab_folio()

Convert try_get_compound_head() into try_get_folio() and convert
try_grab_compound_head() into try_grab_folio().  Add a temporary
try_grab_compound_head() wrapper around try_grab_folio() to let us
convert callers individually.

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>
mm/gup.c
mm/internal.h