mm: remove unused pgdat->inactive_ratio
Subsystems (4)
PATCH 1/1 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.
Signed-off-by Andrey Ryabinin <[email protected]>
--- include/linux/mmzone.h | 6 ------ mm/vmscan.c | 2 +- mm/vmstat.c | 6 ++---- 3 files changed, 3 insertions(+), 11 deletions(-)
include/linux/mmzone.h +0 -6
@@ -711,12 +711,6 @@ typedef struct pglist_data {/* Fields commonly accessed by the page reclaim scanner */ struct lruvec lruvec; -/* -* The target ratio of ACTIVE_ANON to INACTIVE_ANON pages on -* this node's LRU. Maintained by the pageout code. -*/ -unsigned int inactive_ratio; -unsigned long flags;ZONE_PADDING (_pad2_)
mm/vmscan.c +1 -1
@@ -2081,7 +2081,7 @@ static void shrink_active_list(unsigned long nr_to_scan,* If that fails and refaulting is observed, the inactive list grows. * * The inactive_ratio is the target ratio of ACTIVE to INACTIVE pages -* on this LRU, maintained by the pageout code. A zone->inactive_ratio +* on this LRU, maintained by the pageout code. An inactive_ratio * of 3 means 3:1 or 25% of the pages are kept on the inactive list. * * total target max
mm/vmstat.c +2 -4
@@ -1682,11 +1682,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' ); }
Signature · 7 lines
2.13.6 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 8 lines · Andrey Ryabinin
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/zoneinfooutput.Remove it.
Signed-off-by Andrey Ryabinin <[email protected]>
Reviewed-by Rik van Riel <[email protected]>
Signature · 1 line
All rights reversed