]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4cbcef225570b81a41511b4362e144b9f6c5d08c
tree03b3a4ee3a82347f5be5b2c19fba0cae94a4c938
parent62df2635dfd2d5a1bf430bb9e51c29f46dc96c5d
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