Skip to contentSkip to conversation

mm: compaction: update comment about zone lock in isolate_freepages_block

PATCH In review Jerome Marchand 2 participants 3 messages Aug 30, 2013 – Sep 3, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: compaction: update comment about zone lock in isolate_freepages_block

Since commit f40d1e4 (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.

---
 mm/compaction.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
mm/compaction.c +3 -4
index 05ccb4c..9f9026f 100644
@@ -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,
Signature · 7 lines
1.7.7.6

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Jerome Marchand

Since commit f40d1e4 (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.

Quoted 31 lines

---
mm/compaction.c | 7 +++----

1 files changed, 3 insertions(+), 4 deletions(-)
mm/compaction.c +3 -4
index 05ccb4c..9f9026f 100644
@@ -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,
Signature · 7 lines
1.7.7.6

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

Reviewed-by on v1 1/1
#2 lore raw
In reply to Jerome Marchand
Quoted 6 lines · Jerome Marchand

Since commit f40d1e4 (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.

Quoted 31 lines

---
mm/compaction.c | 7 +++----

1 files changed, 3 insertions(+), 4 deletions(-)
mm/compaction.c +3 -4
index 05ccb4c..9f9026f 100644
@@ -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,
Signature · 7 lines
1.7.7.6

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>