OSDN Git Service

mm/hugetlb: add folio_hstate()
authorSidhartha Kumar <sidhartha.kumar@oracle.com>
Thu, 22 Sep 2022 15:42:07 +0000 (10:42 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 9 Nov 2022 01:37:12 +0000 (17:37 -0800)
commite51da3a9b6c2f67879880259a25c51dbda01c462
tree07aca1d7944489fd40fa52f8ef910520893cc568
parentece62684dcfb714b7d8452056b4a33d426b16457
mm/hugetlb: add folio_hstate()

Helper function to retrieve hstate information from a hugetlb folio.

Link: https://lkml.kernel.org/r/20220922154207.1575343-6-sidhartha.kumar@oracle.com
Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-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: 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/hugetlb.h
mm/migrate.c