diff options
author | Gavin Shan | 2012-08-01 01:42:49 +0200 |
---|---|---|
committer | Linus Torvalds | 2012-08-01 03:42:42 +0200 |
commit | c59e26104e3e0e952cd7d63e79cd71ee5a9ec25a (patch) | |
tree | 14ab1cef0b19e576672bdfdea97bc947e6252a76 /mm/fadvise.c | |
parent | memcg: make mem_cgroup_force_empty_list() return bool (diff) | |
download | kernel-qcow2-linux-c59e26104e3e0e952cd7d63e79cd71ee5a9ec25a.tar.gz kernel-qcow2-linux-c59e26104e3e0e952cd7d63e79cd71ee5a9ec25a.tar.xz kernel-qcow2-linux-c59e26104e3e0e952cd7d63e79cd71ee5a9ec25a.zip |
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>
Diffstat (limited to 'mm/fadvise.c')
0 files changed, 0 insertions, 0 deletions