Re: [PATCH v2 1/3] btrfs: remove always true if branch in find_delalloc_range

2018-12-04 Thread David Sterba
On Thu, Nov 29, 2018 at 11:33:38AM +0800, Lu Fengqi wrote: > The @found is always false when it comes to the if branch. Besides, the > bool type is more suitable for @found. Change the return value of the > function and its caller to bool as well. > > Signed-off-by: Lu Fengqi Added to

Re: [PATCH v2 1/3] btrfs: remove always true if branch in find_delalloc_range

2018-11-28 Thread Nikolay Borisov
On 29.11.18 г. 5:33 ч., Lu Fengqi wrote: > The @found is always false when it comes to the if branch. Besides, the > bool type is more suitable for @found. Change the return value of the > function and its caller to bool as well. > > Signed-off-by: Lu Fengqi Reviewed-by: Nikolay Borisov >

[PATCH v2 1/3] btrfs: remove always true if branch in find_delalloc_range

2018-11-28 Thread Lu Fengqi
The @found is always false when it comes to the if branch. Besides, the bool type is more suitable for @found. Change the return value of the function and its caller to bool as well. Signed-off-by: Lu Fengqi --- fs/btrfs/extent_io.c | 31 +++