Re: [PATCH v2 1/2] mm: vmscan: remove folio_test_private() check in pageout()
From: David Hildenbrand
Date: Fri Sep 19 2025 - 04:00:21 EST
- if (folio_test_private(folio)) {
- if (try_to_free_buffers(folio)) {
- folio_clear_dirty(folio);
- pr_info("%s: orphaned folio\n", __func__);
- return PAGE_CLEAN;
- }
- }
+ VM_WARN_ON_FOLIO(true, folio);
Unexpected but better to use VM_WARN_ON_ONCE_FOLIO here.
Um, I don't think it makes much difference, because we should no longer
hit this.
I mean, all VM_WARN_ON are not expected to be hit. But if it ever happens, it's usually going to be a lot.
(I recall Lorenzo wanted to look into cleaning a lot of that up and possibly unifying both helpers)
--
Cheers
David / dhildenb