summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-06-19 13:55:37 +0300
committerJens Axboe <axboe@kernel.dk>2017-06-21 07:47:34 -0600
commit0e9350de2ecdf22f003107d3d21db59e17c521ad (patch)
tree83beb70d0bf79e8f6a016753dab1b74611f94257
parent5435c023b92ee1cfb896d924d28c6d31d8386aa0 (diff)
downloadlinux-stable-0e9350de2ecdf22f003107d3d21db59e17c521ad.tar.gz
linux-stable-0e9350de2ecdf22f003107d3d21db59e17c521ad.tar.bz2
linux-stable-0e9350de2ecdf22f003107d3d21db59e17c521ad.zip
btrfs: use new block error code
This function is supposed to return blk_status_t error codes now but there was a stray -ENOMEM left behind. Fixes: 4e4cbee93d56 ("block: switch bios to blk_status_t") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Christoph Hellwig <hch@lst.de> Acked-by: David Sterba <dsterba@suse.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--fs/btrfs/compression.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c
index 9ac55b266e78..a2fad39f79ba 100644
--- a/fs/btrfs/compression.c
+++ b/fs/btrfs/compression.c
@@ -638,7 +638,7 @@ blk_status_t btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
__GFP_HIGHMEM);
if (!cb->compressed_pages[pg_index]) {
faili = pg_index - 1;
- ret = -ENOMEM;
+ ret = BLK_STS_RESOURCE;
goto fail2;
}
}