From: Andrew Morton <akpm@linux-foundation.org>
To: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: linux-mm@kvack.org, "Paolo Bonzini" <pbonzini@redhat.com>,
"Radim Krčmář" <rkrcmar@redhat.com>, KVM <kvm@vger.kernel.org>,
"Cornelia Huck" <cornelia.huck@de.ibm.com>,
linux-s390 <linux-s390@vger.kernel.org>,
"David Hildenbrand" <dahi@linux.vnet.ibm.com>,
linux-kernel@vger.kernel.org, "Vlastimil Babka" <vbabka@suse.cz>,
"Joonsoo Kim" <iamjoonsoo.kim@lge.com>
Subject: Re: [PATCH 1/1] mm/page_ref: introduce page_ref_inc_return
Date: Mon, 20 Jun 2016 16:11:26 -0700 [thread overview]
Message-ID: <20160620161126.082c51572524a39f599ecc52@linux-foundation.org> (raw)
In-Reply-To: <1466419093-114348-2-git-send-email-borntraeger@de.ibm.com>
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>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2016-06-20 23:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-20 10:38 [PATCH 0/1] " Christian Borntraeger
2016-06-20 10:38 ` [PATCH 1/1] mm/page_ref: " Christian Borntraeger
2016-06-20 23:11 ` Andrew Morton [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160620161126.082c51572524a39f599ecc52@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=borntraeger@de.ibm.com \
--cc=cornelia.huck@de.ibm.com \
--cc=dahi@linux.vnet.ibm.com \
--cc=iamjoonsoo.kim@lge.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-s390@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=rkrcmar@redhat.com \
--cc=vbabka@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox