Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1282754
| From | Joonsoo Kim <js1304@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v3 2/7] mm/compaction: remove unused defer_compaction() in compaction.h |
| Date | 2015-12-03 08:20 +0100 |
| Message-ID | <qBwlj-1No-17@gated-at.bofh.it> (permalink) |
| References | <qBwlj-1No-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
It's not used externally. Remove it in compaction.h.
Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
---
include/linux/compaction.h | 1 -
mm/compaction.c | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/linux/compaction.h b/include/linux/compaction.h
index 4cd4ddf..359b07a 100644
--- a/include/linux/compaction.h
+++ b/include/linux/compaction.h
@@ -46,7 +46,6 @@ extern void reset_isolation_suitable(pg_data_t *pgdat);
extern unsigned long compaction_suitable(struct zone *zone, int order,
int alloc_flags, int classzone_idx);
-extern void defer_compaction(struct zone *zone, int order);
extern bool compaction_deferred(struct zone *zone, int order);
extern void compaction_defer_reset(struct zone *zone, int order,
bool alloc_success);
diff --git a/mm/compaction.c b/mm/compaction.c
index 564047c..f144494 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -124,7 +124,7 @@ static struct page *pageblock_pfn_to_page(unsigned long start_pfn,
* allocation success. 1 << compact_defer_limit compactions are skipped up
* to a limit of 1 << COMPACT_MAX_DEFER_SHIFT
*/
-void defer_compaction(struct zone *zone, int order)
+static void defer_compaction(struct zone *zone, int order)
{
zone->compact_considered = 0;
zone->compact_defer_shift++;
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v3 0/7] mm/compaction: redesign compaction: part1 Joonsoo Kim <js1304@gmail.com> - 2015-12-03 08:20 +0100
[PATCH v3 2/7] mm/compaction: remove unused defer_compaction() in compaction.h Joonsoo Kim <js1304@gmail.com> - 2015-12-03 08:20 +0100
Re: [PATCH v3 2/7] mm/compaction: remove unused defer_compaction() in compaction.h Vlastimil Babka <vbabka@suse.cz> - 2015-12-04 16:30 +0100
[PATCH v3 6/7] mm/compaction: introduce migration scan limit Joonsoo Kim <js1304@gmail.com> - 2015-12-03 08:20 +0100
[PATCH v3 7/7] mm/compaction: replace compaction deferring with compaction limit Joonsoo Kim <js1304@gmail.com> - 2015-12-03 08:20 +0100
csiph-web