summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJerome Marchand2013-11-13 00:07:12 +0100
committerLinus Torvalds2013-11-13 04:09:03 +0100
commit9e4be4708e9e88da46ae1f0bb1054c3619cc476e (patch)
treeccea30f743723fb1747a8d833a51996045d9d666
parentmm/vmalloc: use NUMA_NO_NODE (diff)
downloadkernel-qcow2-linux-9e4be4708e9e88da46ae1f0bb1054c3619cc476e.tar.gz
kernel-qcow2-linux-9e4be4708e9e88da46ae1f0bb1054c3619cc476e.tar.xz
kernel-qcow2-linux-9e4be4708e9e88da46ae1f0bb1054c3619cc476e.zip
mm/compaction.c: update comment about zone lock in isolate_freepages_block
Since commit f40d1e42bb98 ("mm: compaction: acquire the zone->lock as late as possible"), isolate_freepages_block() takes the zone->lock itself. The function description however still states that the zone->lock must be held. This patch removes this outdated statement. Signed-off-by: Jerome Marchand <jmarchan@redhat.com> Cc: Mel Gorman <mel@csn.ul.ie> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--mm/compaction.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mm/compaction.c b/mm/compaction.c
index b5326b141a25..805165bcd3dd 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -235,10 +235,9 @@ static bool suitable_migration_target(struct page *page)
}
/*
- * Isolate free pages onto a private freelist. Caller must hold zone->lock.
- * If @strict is true, will abort returning 0 on any invalid PFNs or non-free
- * pages inside of the pageblock (even though it may still end up isolating
- * some pages).
+ * Isolate free pages onto a private freelist. If @strict is true, will abort
+ * returning 0 on any invalid PFNs or non-free pages inside of the pageblock
+ * (even though it may still end up isolating some pages).
*/
static unsigned long isolate_freepages_block(struct compact_control *cc,
unsigned long blockpfn,