在 2024/10/3 17:52, Michal Hocko 写道:
On Thu 03-10-24 17:41:23, Qu Wenruo wrote: [...]Just a little curious, would it be better to introduce a flag for address_space to indicate whether the folio needs to be charged or not?I would say that an explicit interface seems better because it is easier to find (grep) and reason about. If you make this address space property then it is really hard to find all the callers.
Makes sense, thanks a lot for all the help! Thanks, Qu