]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/hugetlbfs/inode.c
Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
[linux.git] / fs / hugetlbfs / inode.c
index d5c2a315861064b459a0adef1d6d3e490d05dbff..a66e425884d14e000aa2f85b85c776cae0d347c0 100644 (file)
@@ -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))