X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=mm%2Fcompaction.c;h=d8cfb7b99a8375f316af8ea291638df78d4e33d2;hb=32927393dc1ccd60fb2bdc05b9e8e88753761469;hp=df3da2f76fdc8371a759178c5f3c016a5252d21b;hpb=31c0aa87ec8a30b1e9e4cf862905a369560f7705;p=linux-block.git diff --git a/mm/compaction.c b/mm/compaction.c index df3da2f76fdc..d8cfb7b99a83 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -481,6 +481,7 @@ static bool test_and_set_skip(struct compact_control *cc, struct page *page, */ static bool compact_lock_irqsave(spinlock_t *lock, unsigned long *flags, struct compact_control *cc) + __acquires(lock) { /* Track if the lock is contended in async mode */ if (cc->mode == MIGRATE_ASYNC && !cc->contended) { @@ -989,7 +990,7 @@ isolate_migratepages_block(struct compact_control *cc, unsigned long low_pfn, /* Successfully isolated */ del_page_from_lru_list(page, lruvec, page_lru(page)); mod_node_page_state(page_pgdat(page), - NR_ISOLATED_ANON + page_is_file_cache(page), + NR_ISOLATED_ANON + page_is_file_lru(page), hpage_nr_pages(page)); isolate_success: @@ -2462,7 +2463,7 @@ int sysctl_compact_memory; * /proc/sys/vm/compact_memory */ int sysctl_compaction_handler(struct ctl_table *table, int write, - void __user *buffer, size_t *length, loff_t *ppos) + void *buffer, size_t *length, loff_t *ppos) { if (write) compact_nodes();