diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-10-24 16:40:05 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:14 -0400 |
commit | b0d1b70af85718a58e4edd796251a3600a20b6d5 (patch) | |
tree | 2e5d13ecd4a048106b2ac309dd9b00af6f27f8de /fs/bcachefs/move.c | |
parent | 114eea75c73dfd95ae529eb841aad0330793f446 (diff) | |
download | linux-stable-b0d1b70af85718a58e4edd796251a3600a20b6d5.tar.gz linux-stable-b0d1b70af85718a58e4edd796251a3600a20b6d5.tar.bz2 linux-stable-b0d1b70af85718a58e4edd796251a3600a20b6d5.zip |
bcachefs: Must check for errors from bch2_trans_cond_resched()
But we don't need to call it from outside the btree iterator code
anymore, since it's called by bch2_trans_begin() and
bch2_btree_path_traverse().
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/move.c')
-rw-r--r-- | fs/bcachefs/move.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/bcachefs/move.c b/fs/bcachefs/move.c index 4e2bd1474a0a..db9800141728 100644 --- a/fs/bcachefs/move.c +++ b/fs/bcachefs/move.c @@ -768,7 +768,6 @@ next: &stats->sectors_seen); next_nondata: bch2_btree_iter_advance(&iter); - bch2_trans_cond_resched(&trans); } out: @@ -914,7 +913,6 @@ retry: ret = bch2_btree_node_rewrite(&trans, &iter, b->data->keys.seq, 0) ?: ret; next: - bch2_trans_cond_resched(&trans); bch2_btree_iter_next_node(&iter); } if (ret == -EINTR) |