]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-hugetlb-fix-total-hugetlbfs-pages-count-when-memory-overcommit-accouting-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 20 Mar 2013 04:06:46 +0000 (15:06 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:27:10 +0000 (16:27 +1100)
coding-style tweak

Cc: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c

index 8bf817c72b852a068eb4d442328dade93397051a..31cb6100efacb1fc1aa5379af5b87c209c5d76a6 100644 (file)
@@ -2126,6 +2126,7 @@ unsigned long hugetlb_total_pages(void)
 {
        struct hstate *h;
        unsigned long nr_total_pages = 0;
+
        for_each_hstate(h)
                nr_total_pages += h->nr_huge_pages * pages_per_huge_page(h);
        return nr_total_pages;