Skip to content

Commit 8882dd2

Browse files
author
Fox Snowpatch
committed
1 parent 56e2adc commit 8882dd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/page-flags.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ static inline unsigned long _compound_head(const struct page *page)
239239
{
240240
unsigned long head = READ_ONCE(page->compound_head);
241241

242-
if (unlikely(head & 1))
243-
return head - 1;
242+
if (unlikely(head & 1UL))
243+
return head & ~1UL;
244244
return (unsigned long)page_fixed_fake_head(page);
245245
}
246246

0 commit comments

Comments
 (0)