Re: [PATCH 2/8] btrfs: Streamline btrfs_get_io_failure_record logic

Josef Bacik
2020-07-02T13:13:17Z

On 7/2/20 8:23 AM, Nikolay Borisov wrote:
> Make the function directly return a pointer to a failure record and
> adjust callers to handle it. Also refactor the logic inside so that
> the case which allocates the failure record for the first time is not
> handled in an 'if' arm, saving us a level of indentation. Finally make
> the function static as it's not used outside of extent_io.c .
>
> Signed-off-by: Nikolay Borisov <nborisov@suse.com>

Reviewed-by: Josef Bacik <josef@toxicpanda.com>

Thanks,

Josef