]> 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)
commitece1ed7bfa1208b527b3dc90bb45c55e0d139a88
tree2e842c73049d93126fe1fbbd16cd72cd5eacbc97
parent0b90ddae13441c43a30d2e2689b8193a81891c92
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