> btw, in page_referenced_one(): > > + if (mm != current->mm && has_swap_token(mm)) > + referenced++; > > what's the reason for the `mm != current->mm' test? > so that you can steal pages from yourself if you really need to, say if your own working set is bigger than ram.