diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index d5c2a315861064b459a0adef1d6d3e490d05dbff..a66e425884d14e000aa2f85b85c776cae0d347c0 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c @@ -1498,8 +1498,10 @@ static int __init init_hugetlbfs_fs(void) /* other hstates are optional */ i = 0; for_each_hstate(h) { - if (i == default_hstate_idx) + if (i == default_hstate_idx) { + i++; continue; + } mnt = mount_one_hugetlbfs(h); if (IS_ERR(mnt))