[PATCH] btrfs: fix boolreturn.cocci warnings

2021-01-30 Thread kernel test robot
From: kernel test robot fs/btrfs/volumes.c:1462:10-11: WARNING: return of 0/1 in function 'dev_extent_hole_check_zoned' 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: 69e8

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

2020-12-15 Thread David Sterba
On Sun, Nov 01, 2020 at 01:20:51PM +0800, kernel test robot wrote: > From: kernel test robot > > 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 inste

[PATCH] btrfs: fix boolreturn.cocci warnings

2020-10-31 Thread kernel test robot
From: kernel test robot 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: fc96d37