Re: [PATCH 1/3] mm: swap: fix vmstats for huge pages

2020-05-08 Thread Johannes Weiner
On Fri, May 08, 2020 at 02:22:13PM -0700, Shakeel Butt wrote: > Many of the callbacks called by pagevec_lru_move_fn() do 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.

[PATCH 1/3] mm: swap: fix vmstats for huge pages

2020-05-08 Thread Shakeel Butt
Many of the callbacks called by pagevec_lru_move_fn() do 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 --- mm/swap.c | 14 -- 1