From 9d6f1b539d314b99eba8b2ac9450a4dbf6fc203b Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 10 Jan 2014 12:41:24 +1100 Subject: mm-munlock-fix-potential-race-with-thp-page-split-fix avoid a coding-style ugly Cc: Vlastimil Babka Signed-off-by: Andrew Morton --- mm/mlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mm') diff --git a/mm/mlock.c b/mm/mlock.c index b5d7dab835c0..316a5bf4fb91 100644 --- a/mm/mlock.c +++ b/mm/mlock.c @@ -95,9 +95,9 @@ void mlock_vma_page(struct page *page) static bool __munlock_isolate_lru_page(struct page *page, bool getpage) { if (PageLRU(page)) { - struct lruvec *lruvec = mem_cgroup_page_lruvec(page, - page_zone(page)); + struct lruvec *lruvec; + lruvec = mem_cgroup_page_lruvec(page, page_zone(page)); if (getpage) get_page(page); ClearPageLRU(page); -- cgit v1.2.3