diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-03-05 02:52:40 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:55 -0400 |
commit | 5be6a274ff7a7cd9640555db63d60127c6434e1a (patch) | |
tree | 11bf3a31b820a99ae2d161662b3ee680119a146d /fs/bcachefs/errcode.h | |
parent | ac2ccddc2689d5889fd1520383738b60dbafc1d0 (diff) | |
download | linux-stable-5be6a274ff7a7cd9640555db63d60127c6434e1a.tar.gz linux-stable-5be6a274ff7a7cd9640555db63d60127c6434e1a.tar.bz2 linux-stable-5be6a274ff7a7cd9640555db63d60127c6434e1a.zip |
bcachefs: Fix stripe reuse path
It's possible that we reuse a stripe that doesn't have quite the same
configuration as the stripe_head we're allocating from. In that case, we
have to make sure that the new stripe uses the settings from the stripe
we resue, not the stripe head, and make sure the buffer is allocated
correctly.
This fixes the ec_mixed_tiers test.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/errcode.h')
-rw-r--r-- | fs/bcachefs/errcode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/errcode.h b/fs/bcachefs/errcode.h index 283303db7dfd..162e315601f9 100644 --- a/fs/bcachefs/errcode.h +++ b/fs/bcachefs/errcode.h @@ -3,11 +3,11 @@ #define _BCACHEFS_ERRCODE_H #define BCH_ERRCODES() \ + x(ENOMEM, ENOMEM_stripe_buf) \ x(ENOSPC, ENOSPC_disk_reservation) \ x(ENOSPC, ENOSPC_bucket_alloc) \ x(ENOSPC, ENOSPC_disk_label_add) \ x(ENOSPC, ENOSPC_stripe_create) \ - x(ENOSPC, ENOSPC_stripe_reuse) \ x(ENOSPC, ENOSPC_inode_create) \ x(ENOSPC, ENOSPC_str_hash_create) \ x(ENOSPC, ENOSPC_snapshot_create) \ |