]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mm/compaction: cleanup on compaction_deferred
authorGavin Shan <shangw@linux.vnet.ibm.com>
Sat, 21 Jul 2012 00:54:08 +0000 (10:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:02:28 +0000 (13:02 +1000)
commit98da6f5b7030806a18307c9275bddc4525720578
tree6ebc4b1ec1b6800cea2376681407b7bf2a4a12fd
parent4acb4949e1989202deb66856a9417bbb72b48de6
mm/compaction: cleanup on compaction_deferred

When CONFIG_COMPACTION is enabled, compaction_deferred() tries to
recalculate the deferred limit again, which isn't necessary.

When CONFIG_COMPACTION is disabled, compaction_deferred() should return
"true" or "false" since it has "bool" for its return value.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/compaction.h