mm: add private field of first tail to struct page and struct folio
authorSidhartha Kumar <sidhartha.kumar@oracle.com>
Thu, 22 Sep 2022 15:42:04 +0000 (10:42 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 9 Nov 2022 01:37:11 +0000 (17:37 -0800)
commitd340625f4849ab5dbfebbc7d84709fbfcd39e52f
treec9634996b41ff415fcc5915f7619094d345c31ca
parentd03c376d9066532551dc56837c7c5490e4fcbbfe
mm: add private field of first tail to struct page and struct folio

Allow struct folio to store hugetlb metadata that is contained in the
private field of the first tail page.  On 32-bit, _private_1 aligns with
page[1].private.

Link: https://lkml.kernel.org/r/20220922154207.1575343-3-sidhartha.kumar@oracle.com
Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Acked-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Colin Cross <ccross@google.com>
Cc: David Howells <dhowells@redhat.com>
Cc: "Eric W . Biederman" <ebiederm@xmission.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: kernel test robot <lkp@intel.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Muchun Song <songmuchun@bytedance.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: William Kucharski <william.kucharski@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm_types.h