On 09/08/22 12:37, Sidhartha Kumar wrote: > Allows the macros which test, set, and clear hugetlb specific page > flags to take a hugetlb folio as an input. The marcros are generated as > folio_{test, set, clear}_hugetlb_{restore_reserve, migratable, > temporary, freed, vmemmap_optimized, raw_hwp_unreliable}. > > Signed-off-by: Sidhartha Kumar <sidhartha.kumar@xxxxxxxxxx> > --- > include/linux/hugetlb.h | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) I wish there was more usage of these new macros. The only usage is a folio_test_hugetlb_restore_reserve() call in patch 5. Usage will expand as more code is converted. Reviewed-by: Mike Kravetz <mike.kravetz@xxxxxxxxxx> -- Mike Kravetz