mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
bcachefs: Fix missing commit in check_dirents
Other repair code seems to be doing commits themselves, but check_key_has_snapshot() does not. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
9e2c3c2ed4
commit
1cda5b88e6
|
|
@ -2312,9 +2312,10 @@ int bch2_check_dirents(struct bch_fs *c)
|
|||
snapshots_seen_init(&s);
|
||||
|
||||
int ret = bch2_trans_run(c,
|
||||
for_each_btree_key(trans, iter, BTREE_ID_dirents,
|
||||
for_each_btree_key_commit(trans, iter, BTREE_ID_dirents,
|
||||
POS(BCACHEFS_ROOT_INO, 0),
|
||||
BTREE_ITER_prefetch|BTREE_ITER_all_snapshots, k,
|
||||
NULL, NULL, BCH_TRANS_COMMIT_no_enospc,
|
||||
check_dirent(trans, &iter, k, &hash_info, &dir, &target, &s)) ?:
|
||||
check_subdir_count_notnested(trans, &dir));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user