Re: [PATCH 2/2] Page migration via Swap V2: MPOL_MF_MOVE interface

Magnus Damm
2005-10-18T10:05:04Z

Hi again,

On 10/18/05, Christoph Lameter <clameter@sgi.com> wrote:
> + vma = check_range(mm, start, end, nmask, flags,
> + (flags & MPOL_MF_MOVE) ? &pagelist : NULL);
> err = PTR_ERR(vma);
> - if (!IS_ERR(vma))
> + if (!IS_ERR(vma)) {
> err = mbind_range(vma, start, end, new);
> + if (!list_empty(&pagelist))
> + swapout_pages(&pagelist);
> + if (!err && !list_empty(&pagelist) && (flags & MPOL_MF_STRICT))
> + err = -EIO;
> + }
> + if (!list_empty(&pagelist))
> + putback_lru_pages(&pagelist);

isolate_lru_page() calls get_page_testone(), and swapout_pages() seems
to call __put_page(). But who decrements page->_count in the case of
putback_lru_pages()?

/ magnus