]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-support-more-pagesizes-for-map_hugetlb-shm_hugetlb-v7-fix-fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 9 Nov 2012 03:04:21 +0000 (14:04 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Nov 2012 05:15:32 +0000 (16:15 +1100)
missed one

Cc: Andi Kleen <ak@linux.intel.com>
Cc: Hillf Danton <dhillf@gmail.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/hugetlbfs/inode.c

index 5cd6f45cc6bf81488838269fc933258cd76791e5..21b8a48752373f980c34e9a5aa9e840ffab8a0d7 100644 (file)
@@ -1053,7 +1053,7 @@ static int __init init_hugetlbfs_fs(void)
                char buf[50];
                unsigned ps_kb = 1U << (h->order + PAGE_SHIFT - 10);
 
-               snprintf(buf, sizeof buf, "pagesize=%uK", ps_kb);
+               snprintf(buf, sizeof(buf), "pagesize=%uK", ps_kb);
                hugetlbfs_vfsmount[i] = kern_mount_data(&hugetlbfs_fs_type,
                                                        buf);