]> git.baikalelectronics.ru Git - kernel.git/commit
mm: swap: fix vmstats for huge pages
authorShakeel Butt <shakeelb@google.com>
Wed, 3 Jun 2020 23:03:16 +0000 (16:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 4 Jun 2020 03:09:49 +0000 (20:09 -0700)
commitb19967fe25d2bdcbe4021cd896f57db6b4b9bec2
treef877c2ae5d1551b93064bcb08012b2c806a91d61
parentfdf7c3b58bd227e94b8e40321a4912f3d58981f3
mm: swap: fix vmstats for huge pages

Many of the callbacks called by pagevec_lru_move_fn() does not correctly
update the vmstats for huge pages. Fix that. Also __pagevec_lru_add_fn()
use the irq-unsafe alternative to update the stat as the irqs are
already disabled.

Signed-off-by: Shakeel Butt <shakeelb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Link: http://lkml.kernel.org/r/20200527182916.249910-1-shakeelb@google.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/swap.c