From e066bfff1c9dc34233c2cd6ed50935bc7312c091 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 10 Mar 2017 11:25:46 +1100 Subject: [PATCH] mm-move-madv_free-pages-into-lru_inactive_file-list-checkpatch-fixes WARNING: line over 80 characters #127: FILE: mm/swap.c:571: + del_page_from_lru_list(page, lruvec, LRU_INACTIVE_ANON + active); WARNING: please, no spaces at the start of a line #177: FILE: mm/swap.c:654: + {$ total: 0 errors, 2 warnings, 133 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. ./patches/mm-move-madv_free-pages-into-lru_inactive_file-list.patch has style problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Shaohua Li Signed-off-by: Andrew Morton --- mm/swap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mm/swap.c b/mm/swap.c index c4fb4b9f7524ad..ac98eb443a0315 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -568,7 +568,8 @@ static void lru_lazyfree_fn(struct page *page, struct lruvec *lruvec, !PageUnevictable(page)) { bool active = PageActive(page); - del_page_from_lru_list(page, lruvec, LRU_INACTIVE_ANON + active); + del_page_from_lru_list(page, lruvec, + LRU_INACTIVE_ANON + active); ClearPageActive(page); ClearPageReferenced(page); /* @@ -651,7 +652,7 @@ void deactivate_file_page(struct page *page) * This is done to accelerate the reclaim of @page. */ void mark_page_lazyfree(struct page *page) - { +{ if (PageLRU(page) && PageAnon(page) && PageSwapBacked(page) && !PageUnevictable(page)) { struct pagevec *pvec = &get_cpu_var(lru_lazyfree_pvecs);