Skip to content

Commit 4a3ef6b

Browse files
sidkumar99akpm00
authored andcommitted
mm/hugetlb: have CONFIG_HUGETLB_PAGE select CONFIG_XARRAY_MULTI
After commit a08c719 "mm/filemap: remove hugetlb special casing in filemap.c", hugetlb pages are stored in the page cache in base page sized indexes. This leads to multi index stores in the xarray which is only supporting through CONFIG_XARRAY_MULTI. The other page cache user of multi index stores ,THP, selects XARRAY_MULTI. Have CONFIG_HUGETLB_PAGE follow this behavior as well to avoid the BUG() with a CONFIG_HUGETLB_PAGE && !CONFIG_XARRAY_MULTI config. Link: https://lkml.kernel.org/r/[email protected] Fixes: a08c719 ("mm/filemap: remove hugetlb special casing in filemap.c") Signed-off-by: Sidhartha Kumar <[email protected]> Reported-by: Al Viro <[email protected]> Cc: Mike Kravetz <[email protected]> Cc: Muchun Song <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 801a2b1 commit 4a3ef6b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ config HUGETLBFS
268268

269269
config HUGETLB_PAGE
270270
def_bool HUGETLBFS
271+
select XARRAY_MULTI
271272

272273
config HUGETLB_PAGE_OPTIMIZE_VMEMMAP
273274
def_bool HUGETLB_PAGE

0 commit comments

Comments
 (0)