mm/gup: Remove hpage_pincount_add()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 7 Jan 2022 19:15:11 +0000 (14:15 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Mar 2022 16:56:35 +0000 (12:56 -0400)
commit78d9d6ced31ad2f242e44bd24b774fd99c2d663d
tree03b3a4ee3a82347f5be5b2c19fba0cae94a4c938
parent59409373f60a0a493fe2a1b85dc8c6299c4fef37
mm/gup: Remove hpage_pincount_add()

It's clearer to call atomic_add() in the callers; the assertions clearly
can't fire there because they're part of the condition for calling
atomic_add().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
mm/gup.c