hugetlb: clear flags in tail pages that will be freed individually
authorMike Kravetz <mike.kravetz@oracle.com>
Tue, 22 Aug 2023 22:30:43 +0000 (15:30 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 24 Aug 2023 23:20:15 +0000 (16:20 -0700)
commit6c1419730822fe991fc15bfd7059f6872a71a7af
treed3c11ca19bc7c273925db51d8a7608902b6b7f0e
parentfcbc329fa39ef261ba9072c56c63563423bff798
hugetlb: clear flags in tail pages that will be freed individually

hugetlb manually creates and destroys compound pages.  As such it makes
assumptions about struct page layout.  Commit ebc1baf5c9b4 ("mm: free up a
word in the first tail page") breaks hugetlb.  The following will fix the
breakage.

Link: https://lkml.kernel.org/r/20230822231741.GC4509@monkey
Fixes: ebc1baf5c9b4 ("mm: free up a word in the first tail page")
Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c