Message ID | 20210717065911.61497-3-linmiaohe@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Cleanups for vmscan | expand |
diff --git a/mm/vmscan.c b/mm/vmscan.c index 92a515e82b1b..a55266685eb5 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1704,7 +1704,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; @@ -2329,7 +2328,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,
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. Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> --- mm/vmscan.c | 2 -- 1 file changed, 2 deletions(-)