Commit 87db4a8abdf503c5e67eca7373dadb177bd0d715

Authored by Heesub Shin
Committed by Jiri Slaby
1 parent 32e8fcae4a

mm/compaction: clean up unused code lines

commit 13fb44e4b0414d7e718433a49e6430d5b76bd46e upstream.

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>
Signed-off-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>

Showing 1 changed file with 0 additions and 10 deletions Side-by-side Diff

... ... @@ -208,12 +208,6 @@
208 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 211 /* Returns true if the page is within a block suitable for migration to */
218 212 static bool suitable_migration_target(struct page *page)
219 213 {
... ... @@ -734,7 +728,6 @@
734 728 continue;
735 729  
736 730 /* Found a block suitable for isolating free pages from */
737   - isolated = 0;
738 731  
739 732 /*
740 733 * Take care when isolating in last pageblock of a zone which
... ... @@ -1163,9 +1156,6 @@
1163 1156 if (zone_watermark_ok(zone, cc->order,
1164 1157 low_wmark_pages(zone), 0, 0))
1165 1158 compaction_defer_reset(zone, cc->order, false);
1166   - /* Currently async compaction is never deferred. */
1167   - else if (cc->sync)
1168   - defer_compaction(zone, cc->order);
1169 1159 }
1170 1160  
1171 1161 VM_BUG_ON(!list_empty(&cc->freepages));