summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorAnand Jain2017-10-14 02:35:56 +0200
committerDavid Sterba2017-10-30 12:28:01 +0100
commit2dbe0c77186c691386b74391039899808a4d3f59 (patch)
tree2f1a5137e86a1867922e74144727fb4ca872afcb /fs/btrfs/volumes.c
parentbtrfs: add assertions for releasing trans handle reservations (diff)
downloadkernel-qcow2-linux-2dbe0c77186c691386b74391039899808a4d3f59.tar.gz
kernel-qcow2-linux-2dbe0c77186c691386b74391039899808a4d3f59.tar.xz
kernel-qcow2-linux-2dbe0c77186c691386b74391039899808a4d3f59.zip
btrfs: use BLK_STS defines where needed
At few places we could use BLK_STS_OK and BLK_STS_NOSUPP. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Satoru Taekeuchi <satoru.takeuchi@gmail.com> Reviewed-by: David Sterba <dsterba@suse.com> [ dropped first hunk btrfs_endio_direct_read ] Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 4931b2df4043..56ed01f8d4df 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -6029,7 +6029,7 @@ static void btrfs_end_bio(struct bio *bio)
* this bio is actually up to date, we didn't
* go over the max number of errors
*/
- bio->bi_status = 0;
+ bio->bi_status = BLK_STS_OK;
}
btrfs_end_bbio(bbio, bio);