On Wed,  3 Feb 2016 18:14:16 +0300 "Kirill A. Shutemov" 
<[email protected]> wrote:

> rmap_walk_locked() is the same as rmap_walk(), but caller takes care
> about relevant rmap lock. It only supports anonymous pages for now.
> 
> It's preparation to switch THP splitting from custom rmap walk in
> freeze_page()/unfreeze_page() to generic one.
> 
> ...
>
> +/* Like rmap_walk, but caller holds relevant rmap lock */
> +int rmap_walk_locked(struct page *page, struct rmap_walk_control *rwc)
> +{
> +     /* only for anon pages for now */
> +     VM_BUG_ON_PAGE(!PageAnon(page) || PageKsm(page), page);
> +     return rmap_walk_anon(page, rwc, true);
> +}

Should be rmap_walk_anon_locked()?

Reply via email to