summaryrefslogtreecommitdiff
path: root/fs/btrfs/compression.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2017-10-14 08:35:56 +0800
committerDavid Sterba <dsterba@suse.com>2017-10-30 12:28:01 +0100
commit2dbe0c77186c691386b74391039899808a4d3f59 (patch)
tree2f1a5137e86a1867922e74144727fb4ca872afcb /fs/btrfs/compression.c
parentbf2681cb94d13d91326fc098ca98620b595a9d6b (diff)
downloadlinux-next-2dbe0c77186c691386b74391039899808a4d3f59.tar.gz
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/compression.c')
-rw-r--r--fs/btrfs/compression.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c
index 280384bf34f1..8bdd3dc6c4dc 100644
--- a/fs/btrfs/compression.c
+++ b/fs/btrfs/compression.c
@@ -255,7 +255,8 @@ static void end_compressed_bio_write(struct bio *bio)
cb->start,
cb->start + cb->len - 1,
NULL,
- bio->bi_status ? 0 : 1);
+ bio->bi_status ?
+ BLK_STS_OK : BLK_STS_NOTSUPP);
cb->compressed_pages[0]->mapping = NULL;
end_compressed_writeback(inode, cb);