[PATCH 09/46] mm/rmap: handle device-exclusive entries in folio_referenced_one()

David Hildenbrand (Arm) david at kernel.org
Wed Oct 28 01:08:04 PDT 2026


>> -		if (lru_gen_enabled() && !lru_gen_switching() && pvmw.pte) {
>> +		if (lru_gen_enabled() && !lru_gen_switching() && pvmw.pte &&
>> +		    pte_present(pteval)) {
>>  			if (lru_gen_look_around(&pvmw, nr))
>>  				referenced++;
>>  		} else if (pvmw.pte) {
>> -			if (clear_flush_young_ptes_notify(vma, address, pvmw.pte, nr))
>> +			bool young = false;
>> +
>> +			/*
>> +			 * PFN swap PTEs, such as device-exclusive ones, that
> 
> You mean "PFN softleaf PTEs"? Better expressed as "softleaf PTEs embedding a PFN" ...

Lorenzo raised this off-list as well; I'm using the existing text we use
elsewhere for consistency.

This needs a cleanup that adjusts all of them :)

Thanks!

-- 
Cheers,

David



More information about the kexec mailing list