]> git.baikalelectronics.ru Git - kernel.git/commit
mm/vmscan: take min_slab_pages into account when try to call shrink_node
authorMiaohe Lin <linmiaohe@huawei.com>
Fri, 13 May 2022 03:22:58 +0000 (20:22 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 13 May 2022 14:20:13 +0000 (07:20 -0700)
commitf889e1689ea15e459d5c997f0a30ce04bf3e6cc3
tree3b2c42dc97abcbce377c40dd53fb9a811410fd02
parent26e1990089a31c949e0a7c9ae9dc7aa477140ae6
mm/vmscan: take min_slab_pages into account when try to call shrink_node

Since commit d3db6a53b2df ("mm: vmscan: invoke slab shrinkers from
shrink_zone()"), slab reclaim and lru page reclaim are done together in
the shrink_node.  So we should take min_slab_pages into account when try
to call shrink_node.

Link: https://lkml.kernel.org/r/20220425112118.20924-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Huang Ying <ying.huang@intel.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c