]> git.baikalelectronics.ru Git - kernel.git/commit
hugetlbfs: use helper macro default_hstate in init_hugetlbfs_fs
authorMiaohe Lin <linmiaohe@huawei.com>
Wed, 24 Feb 2021 20:10:04 +0000 (12:10 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Feb 2021 21:38:35 +0000 (13:38 -0800)
commit521abdc3eba6436c418f81c4368cec1e2c19e22d
tree5963da71590be68f83ba043a879c3b58f59d9aa9
parent84126af98eecc240832bf09b422b8061072d7eb7
hugetlbfs: use helper macro default_hstate in init_hugetlbfs_fs

Since commit 5815a4fff30f ("hugetlb: multiple hstates for multiple page
sizes"), we can use macro default_hstate to get the struct hstate which we
use by default.  But init_hugetlbfs_fs() forgot to use it.

Link: https://lkml.kernel.org/r/20210116091827.20982-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hugetlbfs/inode.c