Commit 9e4be4708e9e88da46ae1f0bb1054c3619cc476e
Committed by
Linus Torvalds
1 parent
4b90951c0b
Exists in
master
and in
16 other branches
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>
Showing 1 changed file with 3 additions and 4 deletions Side-by-side Diff
mm/compaction.c
... | ... | @@ -235,10 +235,9 @@ |
235 | 235 | } |
236 | 236 | |
237 | 237 | /* |
238 | - * Isolate free pages onto a private freelist. Caller must hold zone->lock. | |
239 | - * If @strict is true, will abort returning 0 on any invalid PFNs or non-free | |
240 | - * pages inside of the pageblock (even though it may still end up isolating | |
241 | - * some pages). | |
238 | + * Isolate free pages onto a private freelist. If @strict is true, will abort | |
239 | + * returning 0 on any invalid PFNs or non-free pages inside of the pageblock | |
240 | + * (even though it may still end up isolating some pages). | |
242 | 241 | */ |
243 | 242 | static unsigned long isolate_freepages_block(struct compact_control *cc, |
244 | 243 | unsigned long blockpfn, |