C. Jayachandran wrote: [snip] > I tried to match the vm_page_alloc() code here. I'm not sure if I have > to handle the PG_CACHED case, and if it is okay to change the VM > counters here. > > Sorry, I overlooked one of your questions before. Yes, accesses to those counters are synchronized by the free queues lock.