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] [thread-next>] [day] [month] [year] [list]
Message-ID: <48d8b7df-bc23-ba2b-135d-5d91046769fb@suse.cz>
Date:   Thu, 12 Jan 2023 10:57:46 +0100
From:   Vlastimil Babka <vbabka@...e.cz>
To:     Lorenzo Stoakes <lstoakes@...il.com>, linux-mm@...ck.org,
        Andrew Morton <akpm@...ux-foundation.org>,
        linux-kernel@...r.kernel.org
Cc:     Matthew Wilcox <willy@...radead.org>,
        Hugh Dickins <hughd@...gle.com>,
        Liam Howlett <liam.howlett@...cle.com>,
        William Kucharski <william.kucharski@...cle.com>,
        Christian Brauner <brauner@...nel.org>,
        Jonathan Corbet <corbet@....net>,
        Mike Rapoport <rppt@...nel.org>,
        Joel Fernandes <joel@...lfernandes.org>,
        Geert Uytterhoeven <geert@...ux-m68k.org>
Subject: Re: [PATCH v3 1/5] mm: pagevec: add folio_batch_reinit()

On 12/26/22 09:44, Lorenzo Stoakes wrote:
> This performs the same task as pagevec_reinit(), only modifying a folio
> batch rather than a pagevec.
> 
> Signed-off-by: Lorenzo Stoakes <lstoakes@...il.com>

Acked-by: Vlastimil Babka <vbabka@...e.cz>

> ---
>  include/linux/pagevec.h | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/include/linux/pagevec.h b/include/linux/pagevec.h
> index 215eb6c3bdc9..2a6f61a0c10a 100644
> --- a/include/linux/pagevec.h
> +++ b/include/linux/pagevec.h
> @@ -103,6 +103,11 @@ static inline void folio_batch_init(struct folio_batch *fbatch)
>  	fbatch->percpu_pvec_drained = false;
>  }
>  
> +static inline void folio_batch_reinit(struct folio_batch *fbatch)
> +{
> +	fbatch->nr = 0;
> +}
> +
>  static inline unsigned int folio_batch_count(struct folio_batch *fbatch)
>  {
>  	return fbatch->nr;

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ