aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorMike Kravetz <[email protected]>2016-02-05 23:36:38 +0000
committerLinus Torvalds <[email protected]>2016-02-06 02:10:40 +0000
commitb4330afbed0cdceeba33c4945158c55771047e81 (patch)
tree422b578bbf19e4d4c4dea5d742cc4e6dfd000a30 /fs/btrfs/dev-replace.c
parentmm: downgrade VM_BUG in isolate_lru_page() to warning (diff)
downloadkernel-b4330afbed0cdceeba33c4945158c55771047e81.tar.gz
kernel-b4330afbed0cdceeba33c4945158c55771047e81.zip
mm/hugetlb: fix gigantic page initialization/allocation
Attempting to preallocate 1G gigantic huge pages at boot time with "hugepagesz=1G hugepages=1" on the kernel command line will prevent booting with the following: kernel BUG at mm/hugetlb.c:1218! When mapcount accounting was reworked, the setting of compound_mapcount_ptr in prep_compound_gigantic_page was overlooked. As a result, the validation of mapcount in free_huge_page fails. The "BUG_ON" checks in free_huge_page were also changed to "VM_BUG_ON_PAGE" to assist with debugging. Fixes: 53f9263baba69 ("mm: rework mapcount accounting to enable 4k mapping of THPs") Signed-off-by: Mike Kravetz <[email protected]> Signed-off-by: Naoya Horiguchi <[email protected]> Acked-by: Kirill A. Shutemov <[email protected]> Acked-by: David Rientjes <[email protected]> Tested-by: Vlastimil Babka <[email protected]> Cc: "Aneesh Kumar K.V" <[email protected]> Cc: Jerome Marchand <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions