diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-07-10 23:22:06 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:08 -0400 |
commit | e3a67bdb6e3ab6a6850c546a3772998fe5242069 (patch) | |
tree | 14ed477406773a6ccc94c6c617d36af57990b041 /fs/bcachefs/migrate.c | |
parent | d38494c462b457d1d4b551b0a84425f5d1d19606 (diff) | |
download | lwn-e3a67bdb6e3ab6a6850c546a3772998fe5242069.tar.gz lwn-e3a67bdb6e3ab6a6850c546a3772998fe5242069.zip |
bcachefs: Regularize argument passing of btree_trans
btree_trans should always be passed when we have one - iter->trans is
disfavoured. This mainly updates old code in btree_update_interior.c,
some of which predates btree_trans.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/migrate.c')
-rw-r--r-- | fs/bcachefs/migrate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/migrate.c b/fs/bcachefs/migrate.c index 91a9f584dd6d..aacd6385db1f 100644 --- a/fs/bcachefs/migrate.c +++ b/fs/bcachefs/migrate.c @@ -139,7 +139,7 @@ retry: break; } - ret = bch2_btree_node_update_key(c, iter, b, k.k); + ret = bch2_btree_node_update_key(&trans, iter, b, k.k); if (ret == -EINTR) { b = bch2_btree_iter_peek_node(iter); ret = 0; |