Re: [PATCH 0/8] make some functions return bool

From: Yaowei Bai
Date: Tue Dec 12 2017 - 23:16:57 EST


On Tue, Dec 12, 2017 at 07:47:09PM -0800, David Rientjes wrote:
> On Tue, 12 Dec 2017, Randy Dunlap wrote:
>
> > Sure, but I didn't keep the patch emails.
> >
> > Acked-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
> >
>
> You may have noticed changing functions like is_file_lru() to bool when it
> is used to index into an array or as part of an arithmetic operation for

Yes, you're right. is_file_lru should not return bool. I'm using some
automitic ways to detect this type of functions. Pls ignore that patch
or i'll resend patchset without that one later. Thanks.

> ZVC stats. I'm not sure why you would ack such code.