]> git.baikalelectronics.ru Git - kernel.git/commit
mm/gup: Remove hpage_pincount_sub()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 7 Jan 2022 19:19:39 +0000 (14:19 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Mar 2022 16:56:35 +0000 (12:56 -0400)
commit6ab89e751b7102aafee66e2893d2ad2e1479b33d
tree660423255c68cc673fd6b7ae2d512b81ec0eb90c
parent5199d9df7cbde8e4d5857b443b6b820a9dba24e9
mm/gup: Remove hpage_pincount_sub()

Move the assertion (and correct it to be a cheaper variant),
and inline the atomic_sub() operation.

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