summaryrefslogtreecommitdiff
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2022-02-18 18:03:26 +0300
committerDavid Sterba <dsterba@suse.com>2022-03-14 15:13:51 +0300
commit606f82e797e26013c80d25790639587a5d4dfbb7 (patch)
tree73db2fa06529a730109fc8da2f850104741d2490 /fs/btrfs/compression.h
parente14bfdb5a1f5fbb0a45f64a763c8da00637072d1 (diff)
downloadlinux-606f82e797e26013c80d25790639587a5d4dfbb7.tar.xz
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 <josef@toxicpanda.com> Signed-off-by: David Sterba <dsterba@suse.com>
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 */