fs: hugetlbfs: remove nth_page() usage within folio in adjust_range_hwpoison()

The nth_page() is not really required anymore, so let's remove it.

Link: https://lkml.kernel.org/r/20250901150359.867252-16-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Zi Yan <ziy@nvidia.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
David Hildenbrand
2025-09-01 17:03:36 +02:00
committed by Andrew Morton
parent cb77aa60a0
commit 06d42cf49e

View File

@@ -217,7 +217,7 @@ static size_t adjust_range_hwpoison(struct folio *folio, size_t offset,
break;
offset += n;
if (offset == PAGE_SIZE) {
page = nth_page(page, 1);
page++;
offset = 0;
}
}