diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2014-01-10 12:41:24 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2014-01-10 12:41:24 +1100 |
commit | 9d6f1b539d314b99eba8b2ac9450a4dbf6fc203b (patch) | |
tree | bbef1ab2193a06611382778b89f4db1eaecdd79e /mm | |
parent | 209f61bdd1b6bf85b99c2c805592b9ad456faf8d (diff) |
mm-munlock-fix-potential-race-with-thp-page-split-fix
avoid a coding-style ugly
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/mlock.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |