diff options
author | Choi Gi-yong <yong@gnoy.org> | 2014-04-08 00:37:36 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-08 01:35:55 +0200 |
commit | ac7149045d9fcca1063e22e4c6f607bca8fce268 (patch) | |
tree | 14fa8b9046ff613628dc85920fb7b250b5bfdcad /mm/hugetlb.c | |
parent | mempool: add unlikely and likely hints (diff) | |
download | linux-ac7149045d9fcca1063e22e4c6f607bca8fce268.tar.xz linux-ac7149045d9fcca1063e22e4c6f607bca8fce268.zip |
mm: fix 'ERROR: do not initialise globals to 0 or NULL' and coding style
Signed-off-by: Choi Gi-yong <yong@gnoy.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r-- | mm/hugetlb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index c5aa43993364..27938c441b6f 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -2898,8 +2898,7 @@ retry: if (anon_rmap) { ClearPagePrivate(page); hugepage_add_new_anon_rmap(page, vma, address); - } - else + } else page_dup_rmap(page); new_pte = make_huge_pte(vma, page, ((vma->vm_flags & VM_WRITE) && (vma->vm_flags & VM_SHARED))); |