Re: [PATCH] btrfs: fix boolreturn.cocci warnings

From: David Sterba
Date: Tue Dec 15 2020 - 13:16:11 EST


On Sun, Nov 01, 2020 at 01:20:51PM +0800, kernel test robot wrote:
> From: kernel test robot <lkp@xxxxxxxxx>
>
> fs/btrfs/space-info.c:810:9-10: WARNING: return of 0/1 in function 'need_preemptive_reclaim' with return type bool
>
> Return statements in functions returning bool should use
> true/false instead of 1/0.
> Generated by: scripts/coccinelle/misc/boolreturn.cocci
>
> Fixes: fc96d3794eb2 ("btrfs: rename need_do_async_reclaim")
> CC: Josef Bacik <josef@xxxxxxxxxxxxxx>
> Signed-off-by: kernel test robot <lkp@xxxxxxxxx>

The patchset is still in a topic branch so I folded the change. There
were more int/bool mismatches in other patches, that got fixed too.