diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-03-11 14:59:58 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:21 -0400 |
commit | 932aa837453ada12342d89ea5e063993a928d4c8 (patch) | |
tree | 95fd8eda178c31fd695714cbe9fcae3f189952a6 /fs/bcachefs/migrate.c | |
parent | c43a6ef9a0747ef1094ff14e173513070ed91600 (diff) |
bcachefs: bch2_trans_mark_update()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/migrate.c')
-rw-r--r-- | fs/bcachefs/migrate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/migrate.c b/fs/bcachefs/migrate.c index 98202fbabfaf..f9e6c9d9ef04 100644 --- a/fs/bcachefs/migrate.c +++ b/fs/bcachefs/migrate.c @@ -43,6 +43,7 @@ static int bch2_dev_usrdata_drop(struct bch_fs *c, unsigned dev_idx, int flags) int ret = 0; bch2_trans_init(&trans, c); + bch2_trans_preload_iters(&trans); iter = bch2_trans_get_iter(&trans, BTREE_ID_EXTENTS, POS_MIN, BTREE_ITER_PREFETCH); @@ -96,6 +97,8 @@ static int bch2_dev_usrdata_drop(struct bch_fs *c, unsigned dev_idx, int flags) break; } + BUG_ON(ret == -EINTR); + bch2_trans_exit(&trans); bch2_replicas_gc_end(c, ret); |