Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

David Hildenbrand and committed by
Andrew Morton
06d42cf4 cb77aa60

+1 -1
+1 -1
fs/hugetlbfs/inode.c
··· 217 217 break; 218 218 offset += n; 219 219 if (offset == PAGE_SIZE) { 220 - page = nth_page(page, 1); 220 + page++; 221 221 offset = 0; 222 222 } 223 223 }