btrfs: use new block error code
Subsystems (3)
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")
Signed-off-by Dan Carpenter <[email protected]>
fs/btrfs/compression.c +1 -1
@@ -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; } }
Quoted 5 lines · Dan Carpenter
This function is supposed to return
blk_status_terror codes now but there was a stray-ENOMEMleft behind.Fixes 4e4cbee93d56 ("block: switch bios to blk_status_t")Signed-off-by Dan Carpenter <[email protected]>
Looks fine,
Quoted 5 lines · Dan Carpenter
This function is supposed to return
blk_status_terror codes now but there was a stray-ENOMEMleft behind.Fixes 4e4cbee93d56 ("block: switch bios to blk_status_t")Signed-off-by Dan Carpenter <[email protected]>
Acked-by David Sterba <[email protected]>
The patch depends on the blk_status_t patchset, so I expect that it's going to be merged to that.
Jens Axboe
maintainerQuoted 11 lines · David Sterba
Quoted 5 lines · Dan Carpenter
This function is supposed to return
blk_status_terror codes now but there was a stray-ENOMEMleft behind.Fixes 4e4cbee93d56 ("block: switch bios to blk_status_t")Signed-off-by Dan Carpenter <[email protected]>Acked-by David Sterba <[email protected]>The patch depends on the
blk_status_tpatchset, so I expect that it's going to be merged to that.
Added, thanks.
Signature · 1 line
Jens Axboe