Files
linux/fs
Jan Stancek 15f0ec941f mm/hugetlbfs: fix for_each_hstate() loop in init_hugetlbfs_fs()
LTP memfd_create04 started failing for some huge page sizes
after v5.4-10135-gc3bfc5dd73c6.

The problem is the check introduced to for_each_hstate() loop that
should skip default_hstate_idx.  Since it doesn't update 'i' counter,
all subsequent huge page sizes are skipped as well.

Fixes: 8fc312b32b ("mm/hugetlbfs: fix error handling when setting up mounts")
Signed-off-by: Jan Stancek <jstancek@redhat.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-01-03 10:39:08 -08:00
..
2019-12-09 10:36:44 -08:00
2019-11-11 09:21:59 -05:00
2019-11-18 11:04:32 +01:00
2019-12-09 10:36:44 -08:00
2019-08-07 21:51:47 -04:00
2020-01-02 16:15:33 -08:00
2019-10-25 14:08:24 -04:00
2019-10-14 15:04:01 -07:00