Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1427125

Re: [PATCH 1/1] mm/page_ref: introduce page_ref_inc_return

From Andrew Morton <akpm@linux-foundation.org>
Newsgroups linux.kernel
Subject Re: [PATCH 1/1] mm/page_ref: introduce page_ref_inc_return
Date 2016-06-21 01:20 +0200
Message-ID <rMgE1-6eH-5@gated-at.bofh.it> (permalink)
References <rM7r4-jP-35@gated-at.bofh.it> <rM7r4-jP-33@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, 20 Jun 2016 12:38:13 +0200 Christian Borntraeger <borntraeger@de.ibm.com> wrote:

> From: David Hildenbrand <dahi@linux.vnet.ibm.com>
> 
> 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 <akpm@linux-foundation.org>

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH 1/1] mm/page_ref: introduce page_ref_inc_return Christian Borntraeger <borntraeger@de.ibm.com> - 2016-06-20 15:30 +0200
  Re: [PATCH 1/1] mm/page_ref: introduce page_ref_inc_return Andrew Morton <akpm@linux-foundation.org> - 2016-06-21 01:20 +0200

csiph-web