On Mon, 20 Jun 2016 12:38:13 +0200 Christian Borntraeger 
<[email protected]> wrote:

> From: David Hildenbrand <[email protected]>
> 
> Let's introduce that helper.
> 
> ...
>
> +static inline int page_ref_inc_return(struct page *page)
> +{
> +     int ret = atomic_inc_return(&page->_refcount);
> +
> +     if (page_ref_tracepoint_active(__tracepoint_page_ref_mod_and_return))
> +             __page_ref_mod_and_return(page, 1, ret);
> +     return ret;
> +}

Acked-by: Andrew Morton <[email protected]>

Reply via email to