lkml.org 
[lkml]   [2023]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] mm/hugetlb: convert get_hwpoison_huge_page() to folios
On Tue, Jan 17, 2023 at 10:29:17AM -0800, Sidhartha Kumar wrote:
> - if (get_page_unless_zero(head)) {
> - if (head == compound_head(page))
> + if (folio_try_get(folio)) {
> + if (&folio->page == compound_head(page))

I'd rather express this as:

if (folio == page_folio(page))

as we do in mm/gup.c

\
 
 \ /
  Last update: 2023-03-26 23:44    [W:0.055 / U:1.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site