Thread (101 messages) 101 messages, 3 authors, 2015-01-28
STALE4197d REVIEWED: 1 (0M)

[PATCH 51/97] mm/compaction: clean up unused code lines

From: Mel Gorman <mgorman@suse.de>
Date: 2014-08-28 18:36:46
Also in: lkml
Subsystem: memory management, memory management - page allocator, the rest · Maintainers: Andrew Morton, Vlastimil Babka, Linus Torvalds

From: Heesub Shin <redacted>

commit 13fb44e4b0414d7e718433a49e6430d5b76bd46e upstream.

Remove code lines currently not in use or never called.

Signed-off-by: Heesub Shin <redacted>
Acked-by: Vlastimil Babka <redacted>
Cc: Dongjun Shin <redacted>
Cc: Sunghwan Yun <redacted>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Joonsoo Kim <redacted>
Cc: Bartlomiej Zolnierkiewicz <redacted>
Cc: Michal Nazarewicz <redacted>
Cc: Naoya Horiguchi <redacted>
Cc: Christoph Lameter <redacted>
Cc: Rik van Riel <redacted>
Cc: Dongjun Shin <redacted>
Cc: Sunghwan Yun <redacted>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Mel Gorman <mgorman@suse.de>
---
 mm/compaction.c | 10 ----------
 1 file changed, 10 deletions(-)
diff --git a/mm/compaction.c b/mm/compaction.c
index 5c17302..c5f2f18 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -208,12 +208,6 @@ static bool compact_checklock_irqsave(spinlock_t *lock, unsigned long *flags,
 	return true;
 }
 
-static inline bool compact_trylock_irqsave(spinlock_t *lock,
-			unsigned long *flags, struct compact_control *cc)
-{
-	return compact_checklock_irqsave(lock, flags, false, cc);
-}
-
 /* Returns true if the page is within a block suitable for migration to */
 static bool suitable_migration_target(struct page *page)
 {
@@ -734,7 +728,6 @@ static void isolate_freepages(struct zone *zone,
 			continue;
 
 		/* Found a block suitable for isolating free pages from */
-		isolated = 0;
 
 		/*
 		 * Take care when isolating in last pageblock of a zone which
@@ -1163,9 +1156,6 @@ static void __compact_pgdat(pg_data_t *pgdat, struct compact_control *cc)
 			if (zone_watermark_ok(zone, cc->order,
 						low_wmark_pages(zone), 0, 0))
 				compaction_defer_reset(zone, cc->order, false);
-			/* Currently async compaction is never deferred. */
-			else if (cc->sync)
-				defer_compaction(zone, cc->order);
 		}
 
 		VM_BUG_ON(!list_empty(&cc->freepages));
-- 
1.8.4.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help