Skip to content

Commit

Permalink
btrfs: use new block error code
Browse files Browse the repository at this point in the history
This function is supposed to return blk_status_t error codes now but
there was a stray -ENOMEM left behind.

Fixes: 4e4cbee ("block: switch bios to blk_status_t")
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Christoph Hellwig <[email protected]>
Acked-by: David Sterba <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Dan Carpenter authored and axboe committed Jun 21, 2017
1 parent 5435c02 commit 0e9350d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/compression.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 0e9350d

Please sign in to comment.