Btrfs: record error if one block has failed to retry
authorLiu Bo <bo.li.liu@oracle.com>
Tue, 16 May 2017 00:20:07 +0000 (17:20 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:25:59 +0000 (18:25 +0200)
commit629ebf4fadbc647e2118ef9c94b038eeef178e9c
treea38e9de4eab42a3354b46a0da0a2600b042b626f
parent17347cec15f919901c90cdbf98af47ed2ed28b9f
Btrfs: record error if one block has failed to retry

In the nocsum case of dio read endio, it returns immediately if an error
gets returned when repairing, which leaves the rest blocks unrepaired.  The
behavior is different from how buffered read endio works in the same case.
This changes it to record error only and go on repairing the rest blocks.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c