]> git.baikalelectronics.ru Git - kernel.git/commit
mm/compaction: cleanup on compaction_deferred
authorGavin Shan <shangw@linux.vnet.ibm.com>
Tue, 31 Jul 2012 23:42:49 +0000 (16:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Aug 2012 01:42:42 +0000 (18:42 -0700)
commitffad8d37ca759c0ae10a5d5d0114c6926fa3cf43
tree14ab1cef0b19e576672bdfdea97bc947e6252a76
parentc00f88bb010cff1b82b886358b15e61183f5b745
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/compaction.h