summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/move.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-03-29 19:10:36 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:09:58 +0200
commit6bdefe9c3900b3bb7a028486423520cdc975d9a8 (patch)
treeb6c65237048bc4ed45e4b7d9cefbe837e2d32c6a /fs/bcachefs/move.c
parentbcachefs: move snapshot_t to subvolume_types.h (diff)
downloadlinux-6bdefe9c3900b3bb7a028486423520cdc975d9a8.tar.xz
linux-6bdefe9c3900b3bb7a028486423520cdc975d9a8.zip
bcachefs: Use BTREE_ITER_INTENT in ec_stripe_update_extent()
This adds a flags param to bch2_backpointer_get_key() so that we can pass BTREE_ITER_INTENT, since ec_stripe_update_extent() is updating the extent immediately. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/move.c')
-rw-r--r--fs/bcachefs/move.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/move.c b/fs/bcachefs/move.c
index 9717fdce3ba5..be14d3737027 100644
--- a/fs/bcachefs/move.c
+++ b/fs/bcachefs/move.c
@@ -678,7 +678,7 @@ failed_to_evacuate:
break;
k = bch2_backpointer_get_key(trans, &iter,
- bucket, bp_offset, bp);
+ bucket, bp_offset, bp, 0);
ret = bkey_err(k);
if (bch2_err_matches(ret, BCH_ERR_transaction_restart))
continue;
@@ -767,7 +767,7 @@ int __bch2_evacuate_bucket(struct btree_trans *trans,
unsigned i = 0;
k = bch2_backpointer_get_key(trans, &iter,
- bucket, bp_offset, bp);
+ bucket, bp_offset, bp, 0);
ret = bkey_err(k);
if (bch2_err_matches(ret, BCH_ERR_transaction_restart))
continue;