From: Dan Carpenter Date: Mon, 19 Jun 2017 10:55:37 +0000 (+0300) Subject: btrfs: use new block error code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0e9350de2ecdf22f003107d3d21db59e17c521ad;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Christoph Hellwig Acked-by: David Sterba Signed-off-by: Jens Axboe --- 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; } }