Re: [PATCH] btrfs: check return value of filemap_fdatawrite_range()

From: David Sterba
Date: Fri Aug 21 2020 - 10:39:51 EST


On Fri, Aug 21, 2020 at 01:41:54PM +0100, Alex Dewar wrote:
> In btrfs_dio_imap_begin(), filemap_fdatawrite_range() is called without
> checking the return value. Add a check to catch errors.
>
> Fixes: c0aaf9b7a114f ("btrfs: switch to iomap_dio_rw() for dio")
> Addresses-Coverity: ("Unused value")
> Signed-off-by: Alex Dewar <alex.dewar90@xxxxxxxxx>

Folded to the patch, thanks.