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: <efa6d198-c6f5-4585-8b2d-fe8d2f3b7006@stanley.mountain>
Date: Tue, 1 Oct 2024 12:16:15 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: Sergey Senozhatsky <senozhatsky@...omium.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
	Minchan Kim <minchan@...nel.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCHv5 3/7] zram: rework recompress target selection strategy

On Tue, Oct 01, 2024 at 05:40:57PM +0900, Sergey Senozhatsky wrote:
> On (24/10/01 10:42), Dan Carpenter wrote:
> > On Tue, Sep 17, 2024 at 11:09:08AM +0900, Sergey Senozhatsky wrote:
> > > +static struct zram_pp_slot *select_pp_slot(struct zram_pp_ctl *ctl)
> > > +{
> > > +	struct zram_pp_slot *pps = NULL;
> > > +	s32 idx = NUM_PP_BUCKETS - 1;
> > > +
> > > +	/* The higher the bucket id the more optimal slot post-processing is */
> > > +	while (idx > 0) {
> > 
> > Why is this not idx >= 0?  Why skip the first bucket?
> 
> That's a typo, thanks for spotting this.  Mind if I send a quick
> fixup.patch online liner to Andrew?

Please do.  :)

regards,
dan carpenter


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ