diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-09-06 20:22:26 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-09-21 11:39:49 -0400 |
commit | d5c5b337f8da6c9eebbe6cf9dfbd38fd9503eb35 (patch) | |
tree | a862a4076ccb5c9e62a76350c99bf1c4e4e8ef3a /fs/bcachefs/ec.c | |
parent | 035d72f72c9172a29bba4e09620d286ed8496356 (diff) | |
download | lwn-d5c5b337f8da6c9eebbe6cf9dfbd38fd9503eb35.tar.gz lwn-d5c5b337f8da6c9eebbe6cf9dfbd38fd9503eb35.zip |
bcachefs: Don't drop devices with stripe pointers
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/ec.c')
-rw-r--r-- | fs/bcachefs/ec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/ec.c b/fs/bcachefs/ec.c index f167ea454ded..1587c6e1866a 100644 --- a/fs/bcachefs/ec.c +++ b/fs/bcachefs/ec.c @@ -1322,7 +1322,7 @@ static int ec_stripe_update_extent(struct btree_trans *trans, bkey_reassemble(n, k); - bch2_bkey_drop_ptrs(bkey_i_to_s(n), ptr, ptr->dev != dev); + bch2_bkey_drop_ptrs_noerror(bkey_i_to_s(n), ptr, ptr->dev != dev); ec_ptr = bch2_bkey_has_device(bkey_i_to_s(n), dev); BUG_ON(!ec_ptr); |