From: Miaohe Lin Date: Mon, 23 Aug 2021 23:59:32 +0000 (+1000) Subject: mm/vmscan: remove misleading setting to sc->priority X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8b8096f6084637cabae3e47791a1f5454a6bbd6e;p=users%2Fjedix%2Flinux-maple.git mm/vmscan: remove misleading setting to sc->priority The priority field of sc is used to control how many pages we should scan at once while we always traverse the list to shrink the pages in these functions. So these settings are unneeded and misleading. Link: https://lkml.kernel.org/r/20210717065911.61497-3-linmiaohe@huawei.com Signed-off-by: Miaohe Lin Cc: Alex Shi Cc: Alistair Popple Cc: David Hildenbrand Cc: Hillf Danton Cc: Jens Axboe Cc: Johannes Weiner Cc: John Hubbard Cc: Joonsoo Kim Cc: Matthew Wilcox Cc: Michal Hocko Cc: Minchan Kim Cc: Shaohua Li Cc: Vlastimil Babka Cc: Yu Zhao Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- diff --git a/mm/vmscan.c b/mm/vmscan.c index 776f45692e68..00e468b4c1c1 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1827,7 +1827,6 @@ unsigned int reclaim_clean_pages_from_list(struct zone *zone, { struct scan_control sc = { .gfp_mask = GFP_KERNEL, - .priority = DEF_PRIORITY, .may_unmap = 1, }; struct reclaim_stat stat; @@ -2452,7 +2451,6 @@ unsigned long reclaim_pages(struct list_head *page_list) unsigned int noreclaim_flag; struct scan_control sc = { .gfp_mask = GFP_KERNEL, - .priority = DEF_PRIORITY, .may_writepage = 1, .may_unmap = 1, .may_swap = 1,