]> 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)
commitbd0adcee11fe6dd8702957dce3ddb8d2813e9f0f
tree660423255c68cc673fd6b7ae2d512b81ec0eb90c
parent4cbcef225570b81a41511b4362e144b9f6c5d08c
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