]> git.baikalelectronics.ru Git - kernel.git/commit
mm: vmscan: do not clear SHRINKER_NUMA_AWARE if nr_node_ids == 1
authorVladimir Davydov <vdavydov@virtuozzo.com>
Tue, 15 Mar 2016 21:56:55 +0000 (14:56 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Mar 2016 23:55:16 +0000 (16:55 -0700)
commitce894ed690ccb5892e042e12941836ed189dde51
treea044f724c023f9c56834f95e58163a8cf14b54e0
parentbb155b40b5cfd11311aadb0689696b3faf3ff7d0
mm: vmscan: do not clear SHRINKER_NUMA_AWARE if nr_node_ids == 1

Currently, on shrinker registration we clear SHRINKER_NUMA_AWARE if
there's the only NUMA node present.  The comment states that this will
allow us to save some small loop time later.  It used to be true when
this code was added (see commit d4f59607154b4 ("vmscan: per-node
deferred work")), but since commit d3db6a53b2df3 ("mm: vmscan: invoke
slab shrinkers from shrink_zone()") it doesn't make any difference.
Anyway, running on non-NUMA machine shouldn't make a shrinker NUMA
unaware, so zap this hunk.

Signed-off-by: Vladimir Davydov <vdavydov@virtuozzo.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmscan.c