Skip to contentSkip to conversation

btrfs: use new block error code

PATCH In review Dan Carpenter 4 participants 4 messages Jun 19, 2017 – Jun 21, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
fs/btrfs/compression.c +1 -1
index e536e98fe351..2c0b7b57fcd5 100644
@@ -584,7 +584,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;
 		}
 	}
maintainer
#3 lore raw
Quoted 11 lines · David Sterba
Quoted 5 lines · Dan Carpenter

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")

The patch depends on the blk_status_t patchset, so I expect that it's going to be merged to that.

Added, thanks.

Signature · 1 line
Jens Axboe