summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/data_update.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-10-20 19:32:42 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-31 17:18:37 +0100
commit633169035a7ccdfe3a9eba0202dc2135baa07c72 (patch)
tree720bc1d2c5d7cf425db7a606c26b64669fe6c4f2 /fs/bcachefs/data_update.c
parentbcachefs: move.c exports, refactoring (diff)
downloadlinux-633169035a7ccdfe3a9eba0202dc2135baa07c72.tar.xz
linux-633169035a7ccdfe3a9eba0202dc2135baa07c72.zip
bcachefs: moving_context now owns a btree_trans
btree_trans and moving_context are used together, and having the moving_context owns the transaction object reduces some plumbing. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/data_update.c')
-rw-r--r--fs/bcachefs/data_update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/data_update.c b/fs/bcachefs/data_update.c
index 899ff46de8e0..9b42d37dc344 100644
--- a/fs/bcachefs/data_update.c
+++ b/fs/bcachefs/data_update.c
@@ -487,7 +487,7 @@ int bch2_data_update_init(struct btree_trans *trans,
if (c->opts.nocow_enabled) {
if (ctxt) {
- move_ctxt_wait_event(ctxt, trans,
+ move_ctxt_wait_event(ctxt,
(locked = bch2_bucket_nocow_trylock(&c->nocow_locks,
PTR_BUCKET_POS(c, &p.ptr), 0)) ||
!atomic_read(&ctxt->read_sectors));