Displaying 1 result from an estimated 1 matches for "folio_mapcount".
2025 Jan 24
1
[Question] Are "device exclusive non-swap entries" / "SVM atomics in Nouveau" still getting used in practice?
...particular with device-exclusive, it doesn't really work with THP
>> and is only limited to anonymous memory. I have patches to at least make it
>> work reliably with THP.
>
> I should have crawled through the implementation first before replying.
> Since it only looks at folio_mapcount() make_device_exclusive() should at
> least in theory work reliably on anon memory, and not be impacted by
> elevated refcounts due to migration/ksm/thp/whatever.
Yes, there is -- in theory -- nothing blocking the conversion except the
folio lock. That's different than page migration....