diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-20 14:33:46 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:54 -0400 |
commit | 930256d4fbe7b8dee8f1a1658630655d8c6043f8 (patch) | |
tree | 22f575b09f6b1696b87f60713084ea11e745d256 /fs/bcachefs/btree_update_leaf.c | |
parent | 93bd2f877f221f05a1b51dcfac09d196c8bcda5c (diff) | |
download | lwn-930256d4fbe7b8dee8f1a1658630655d8c6043f8.tar.gz lwn-930256d4fbe7b8dee8f1a1658630655d8c6043f8.zip |
bcachefs: __bch2_btree_insert uses BTREE_INSERT_CACHED
Cached btrees should be doing cached updates by default: this fixes a
bug in the migrate tool.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_update_leaf.c')
-rw-r--r-- | fs/bcachefs/btree_update_leaf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_update_leaf.c b/fs/bcachefs/btree_update_leaf.c index 544b90b15260..0bf4116442f4 100644 --- a/fs/bcachefs/btree_update_leaf.c +++ b/fs/bcachefs/btree_update_leaf.c @@ -1749,6 +1749,7 @@ int __bch2_btree_insert(struct btree_trans *trans, enum btree_id id, int ret; bch2_trans_iter_init(trans, &iter, id, bkey_start_pos(&k->k), + BTREE_ITER_CACHED| BTREE_ITER_INTENT); ret = bch2_btree_iter_traverse(&iter) ?: bch2_trans_update(trans, &iter, k, flags); |