lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20160620161126.082c51572524a39f599ecc52@linux-foundation.org>
Date:	Mon, 20 Jun 2016 16:11:26 -0700
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	Christian Borntraeger <borntraeger@...ibm.com>
Cc:	linux-mm@...ck.org, Paolo Bonzini <pbonzini@...hat.com>,
	Radim Krčmář <rkrcmar@...hat.com>,
	KVM <kvm@...r.kernel.org>,
	Cornelia Huck <cornelia.huck@...ibm.com>,
	linux-s390 <linux-s390@...r.kernel.org>,
	David Hildenbrand <dahi@...ux.vnet.ibm.com>,
	linux-kernel@...r.kernel.org, Vlastimil Babka <vbabka@...e.cz>,
	Joonsoo Kim <iamjoonsoo.kim@....com>
Subject: Re: [PATCH 1/1] mm/page_ref: introduce page_ref_inc_return

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

> From: David Hildenbrand <dahi@...ux.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@...ux-foundation.org>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ