diff options
| author | Kent Overstreet <[email protected]> | 2024-12-21 08:31:00 +0000 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2025-01-10 04:38:41 +0000 |
| commit | bc6fce7870ceda943fdc8451d42407dacb1519e3 (patch) | |
| tree | 0fefb3b337575122c2bdeb09b097cd6bee826b56 /fs/bcachefs/btree_trans_commit.c | |
| parent | bcachefs: Fixes for snapshot_tree.master_subvol (diff) | |
| download | kernel-bc6fce7870ceda943fdc8451d42407dacb1519e3.tar.gz kernel-bc6fce7870ceda943fdc8451d42407dacb1519e3.zip | |
bcachefs: bch2_btree_node_write_trans()
Avoiding screwing up path->lock_seq.
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'fs/bcachefs/btree_trans_commit.c')
| -rw-r--r-- | fs/bcachefs/btree_trans_commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_trans_commit.c b/fs/bcachefs/btree_trans_commit.c index c3a3bfd11e8c..2f1dd516318e 100644 --- a/fs/bcachefs/btree_trans_commit.c +++ b/fs/bcachefs/btree_trans_commit.c @@ -249,7 +249,7 @@ static int __btree_node_flush(struct journal *j, struct journal_entry_pin *pin, new |= 1 << BTREE_NODE_need_write; } while (!try_cmpxchg(&b->flags, &old, new)); - btree_node_write_if_need(c, b, SIX_LOCK_read); + btree_node_write_if_need(trans, b, SIX_LOCK_read); six_unlock_read(&b->c.lock); bch2_trans_put(trans); |
