]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-munlock-fix-potential-race-with-thp-page-split-fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 3 Jan 2014 03:10:03 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:03 +0000 (14:10 +1100)
avoid a coding-style ugly

Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mlock.c

index 69a0da93aeedae6bf9cef52b4c2a548905dafc17..b30adbe620340822a5d63ad3daea99364786f151 100644 (file)
@@ -97,9 +97,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);