diff options
author | Heesub Shin <heesub.shin@samsung.com> | 2014-06-04 19:07:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 19:54:00 -0400 |
commit | 13fb44e4b0414d7e718433a49e6430d5b76bd46e (patch) | |
tree | 9fa3f27c44bbcb84c44910806d71bd91fb6f25bd /mm/compaction.c | |
parent | 5bcc9f86ef09a933255ee66bd899d4601785dad5 (diff) |
mm/compaction: clean up unused code lines
Remove code lines currently not in use or never called.
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Dongjun Shin <d.j.shin@samsung.com>
Cc: Sunghwan Yun <sunghwan.yun@samsung.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: Michal Nazarewicz <mina86@mina86.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Dongjun Shin <d.j.shin@samsung.com>
Cc: Sunghwan Yun <sunghwan.yun@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/compaction.c')
-rw-r--r-- | mm/compaction.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/mm/compaction.c b/mm/compaction.c index 627dc2e4320f..95f7531458f7 100644 --- a/mm/compaction.c +++ b/mm/compaction.c | |||
@@ -208,12 +208,6 @@ static bool compact_checklock_irqsave(spinlock_t *lock, unsigned long *flags, | |||
208 | return true; | 208 | return true; |
209 | } | 209 | } |
210 | 210 | ||
211 | static inline bool compact_trylock_irqsave(spinlock_t *lock, | ||
212 | unsigned long *flags, struct compact_control *cc) | ||
213 | { | ||
214 | return compact_checklock_irqsave(lock, flags, false, cc); | ||
215 | } | ||
216 | |||
217 | /* Returns true if the page is within a block suitable for migration to */ | 211 | /* Returns true if the page is within a block suitable for migration to */ |
218 | static bool suitable_migration_target(struct page *page) | 212 | static bool suitable_migration_target(struct page *page) |
219 | { | 213 | { |
@@ -736,7 +730,6 @@ static void isolate_freepages(struct zone *zone, | |||
736 | continue; | 730 | continue; |
737 | 731 | ||
738 | /* Found a block suitable for isolating free pages from */ | 732 | /* Found a block suitable for isolating free pages from */ |
739 | isolated = 0; | ||
740 | 733 | ||
741 | /* | 734 | /* |
742 | * Take care when isolating in last pageblock of a zone which | 735 | * Take care when isolating in last pageblock of a zone which |
@@ -1165,9 +1158,6 @@ static void __compact_pgdat(pg_data_t *pgdat, struct compact_control *cc) | |||
1165 | if (zone_watermark_ok(zone, cc->order, | 1158 | if (zone_watermark_ok(zone, cc->order, |
1166 | low_wmark_pages(zone), 0, 0)) | 1159 | low_wmark_pages(zone), 0, 0)) |
1167 | compaction_defer_reset(zone, cc->order, false); | 1160 | compaction_defer_reset(zone, cc->order, false); |
1168 | /* Currently async compaction is never deferred. */ | ||
1169 | else if (cc->sync) | ||
1170 | defer_compaction(zone, cc->order); | ||
1171 | } | 1161 | } |
1172 | 1162 | ||
1173 | VM_BUG_ON(!list_empty(&cc->freepages)); | 1163 | VM_BUG_ON(!list_empty(&cc->freepages)); |