aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2022-02-18 15:03:26 +0000
committerDavid Sterba <[email protected]>2022-03-14 12:13:51 +0000
commit606f82e797e26013c80d25790639587a5d4dfbb7 (patch)
tree73db2fa06529a730109fc8da2f850104741d2490 /fs/btrfs/compression.h
parentbtrfs: remove the bio argument from finish_compressed_bio_read (diff)
downloadkernel-606f82e797e26013c80d25790639587a5d4dfbb7.tar.gz
kernel-606f82e797e26013c80d25790639587a5d4dfbb7.zip
btrfs: track compressed bio errors as blk_status_t
Right now we just have a binary "errors" flag, so any error we get on the compressed bio's gets translated to EIO. This isn't necessarily a bad thing, but if we get an ENOMEM it may be nice to know that's what happened instead of an EIO. Track our errors as a blk_status_t, and do the appropriate setting of the errors accordingly. Signed-off-by: Josef Bacik <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/compression.h')
-rw-r--r--fs/btrfs/compression.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h
index 7773953470e3..ac5b20731d2a 100644
--- a/fs/btrfs/compression.h
+++ b/fs/btrfs/compression.h
@@ -58,7 +58,7 @@ struct compressed_bio {
bool writeback;
/* IO errors */
- u8 errors;
+ blk_status_t status;
int mirror_num;
/* for reads, this is the bio we are copying the data into */