From: Andrew Morton Date: Thu, 29 Nov 2012 03:17:11 +0000 (+1100) Subject: mm-support-more-pagesizes-for-map_hugetlb-shm_hugetlb-v7-fix X-Git-Tag: next-20121205~1^2~350 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=26f97e5854ad49a9a91fab966a6ffa548ee7a1f0;p=karo-tx-linux.git mm-support-more-pagesizes-for-map_hugetlb-shm_hugetlb-v7-fix cleanups Cc: Andi Kleen Cc: Hillf Danton Cc: KAMEZAWA Hiroyuki Cc: Michael Kerrisk Cc: Rik van Riel Signed-off-by: Andrew Morton --- diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index f33227504387..5cd6f45cc6bf 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c @@ -1049,7 +1049,7 @@ static int __init init_hugetlbfs_fs(void) goto out; i = 0; - for_each_hstate (h) { + for_each_hstate(h) { char buf[50]; unsigned ps_kb = 1U << (h->order + PAGE_SHIFT - 10); @@ -1058,9 +1058,8 @@ static int __init init_hugetlbfs_fs(void) buf); if (IS_ERR(hugetlbfs_vfsmount[i])) { - pr_err( - "hugetlb: Cannot mount internal hugetlbfs for page size %uK", - ps_kb); + pr_err("hugetlb: Cannot mount internal hugetlbfs for " + "page size %uK", ps_kb); error = PTR_ERR(hugetlbfs_vfsmount[i]); hugetlbfs_vfsmount[i] = NULL; } @@ -1090,7 +1089,7 @@ static void __exit exit_hugetlbfs_fs(void) rcu_barrier(); kmem_cache_destroy(hugetlbfs_inode_cachep); i = 0; - for_each_hstate (h) + for_each_hstate(h) kern_unmount(hugetlbfs_vfsmount[i++]); unregister_filesystem(&hugetlbfs_fs_type); bdi_destroy(&hugetlbfs_backing_dev_info);