Re: [PATCH] btrfs: fix incorrect error return ret being passed to mapping_set_error
From: David Sterba
Date: Wed May 10 2017 - 11:11:07 EST
On Tue, May 09, 2017 at 11:58:55AM -0700, Liu Bo wrote:
> On Tue, May 09, 2017 at 06:14:01PM +0100, Colin King wrote:
> > From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
> >
> > The setting of return code ret should be based on the error code
> > passed into function end_extent_writepage and not on ret. Thanks
> > to Liu Bo for spotting this mistake in the original fix I submitted.
> >
> > Detected by CoverityScan, CID#1414312 ("Logically dead code")
>
> Looks good.
>
> Reviewed-by: Liu Bo <bo.li.liu@xxxxxxxxxx>
Thanks, patch replaced.