[PATCH 16/42] state: Drop cache bucket
Sascha Hauer
s.hauer at pengutronix.de
Wed Apr 19 01:22:22 PDT 2017
Hi Sam,
On Sat, Apr 15, 2017 at 10:53:25AM +0200, Sam Ravnborg wrote:
> > + if (memcmp(bucket->buf, buf, len))
> > + goto refresh;
> > +
> > + return 0;
> > +
> > +refresh:
> > + ret = bucket->write(bucket, buf, len);
>
> In the code above we check needs_refresh and len.
> But needs_refresh is never set back to 0 so it looks like we will refresh it too often.
> The same with the len argument.
You are right, I just sent a patch.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list