mm: convert hugetlb_page_mapping_lock_write to folio
The page is only used to get the mapping, so the folio will do just as well. Both callers already have a folio available, so this saves a call to compound_head(). Link: https://lkml.kernel.org/r/20240412193510.2356957-7-willy@infradead.orgSigned-off-by:Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by:
Jane Chu <jane.chu@oracle.com> Reviewed-by:
Oscar Salvador <osalvador@suse.de> Acked-by:
Miaohe Lin <linmiaohe@huawei.com> Cc: Dan Williams <dan.j.williams@intel.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org>
Showing
Please register or sign in to comment