]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit5d91f31faf8ebed2acfc3a1d6ac344f95c488d66
treef877c2ae5d1551b93064bcb08012b2c806a91d61
parentd483a5dd009a091d3dab3bc873335989e2cd5b08
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