On Thu, Dec 29, 2022 at 08:25:03PM +0800, Kefeng Wang wrote:sorry about the bad indenting,
- if (!PageHead(page) || PageHuge(page) || !PageLRU(page))
+ if (!folio_test_large(folio)
+ || folio_test_hugetlb(folio)
+ || !folio_test_lru(folio))
goto next;
That is a completely illegible way of indenting this code! There's
no visual cue when the condition stops and when the next statement
begins. Try one of these:
if (!folio_test_large(folio) ||will resend with this one, thanks for your review.
folio_test_hugetlb(folio) ||
!folio_test_lru(folio))
goto next;