summaryrefslogtreecommitdiffstats
path: root/mm/vmstat.c
diff options
context:
space:
mode:
authorAndrey Ryabinin <aryabinin@virtuozzo.com>2017-11-16 02:34:15 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2017-11-16 03:21:03 +0100
commit3a50d14d0df5776e002a8683a290c87eeac93a21 (patch)
tree64b482ced9e1f96c56dbebed299706b3535852fb /mm/vmstat.c
parentmm/mmu_notifier: avoid call to invalidate_range() in range_end() (diff)
downloadlinux-3a50d14d0df5776e002a8683a290c87eeac93a21.tar.xz
linux-3a50d14d0df5776e002a8683a290c87eeac93a21.zip
mm: remove unused pgdat->inactive_ratio
Since commit 59dc76b0d4df ("mm: vmscan: reduce size of inactive file list") 'pgdat->inactive_ratio' is not used, except for printing "node_inactive_ratio: 0" in /proc/zoneinfo output. Remove it. Link: http://lkml.kernel.org/r/20171003152611.27483-1-aryabinin@virtuozzo.com Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com> Reviewed-by: Rik van Riel <riel@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmstat.c')
-rw-r--r--mm/vmstat.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c
index 4bb13e72ac97..7d11554861e4 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -1564,11 +1564,9 @@ static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat,
}
seq_printf(m,
"\n node_unreclaimable: %u"
- "\n start_pfn: %lu"
- "\n node_inactive_ratio: %u",
+ "\n start_pfn: %lu",
pgdat->kswapd_failures >= MAX_RECLAIM_RETRIES,
- zone->zone_start_pfn,
- zone->zone_pgdat->inactive_ratio);
+ zone->zone_start_pfn);
seq_putc(m, '\n');
}