mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 04:28:10 -04:00
bcachefs: Fix for hash_redo_key() in fsck
It's possible we're calling hash_redo_key() because of a duplicate key - easiest fix for that is to just not use BCH_HASH_SET_MUST_CREATE. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
committed by
Kent Overstreet
parent
6a16ad951a
commit
eaf798317a
@@ -193,7 +193,7 @@ static int hash_redo_key(const struct bch_hash_desc desc,
|
||||
bch2_trans_update(trans, k_iter, &delete, 0);
|
||||
|
||||
return bch2_hash_set(trans, desc, &h->info, k_iter->pos.inode,
|
||||
tmp, BCH_HASH_SET_MUST_CREATE);
|
||||
tmp, 0);
|
||||
}
|
||||
|
||||
static int fsck_hash_delete_at(struct btree_trans *trans,
|
||||
|
||||
Reference in New Issue
Block a user