mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 23:05:25 -04:00
bcachefs: Drop redundant btree_path_downgrade()s
If a path doesn't have any active references, we shouldn't downgrade it; it'll either be reused, possibly with intent refs again, or dropped at bch2_trans_begin() time. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
@@ -747,7 +747,8 @@ void bch2_trans_downgrade(struct btree_trans *trans)
|
||||
return;
|
||||
|
||||
trans_for_each_path(trans, path, i)
|
||||
bch2_btree_path_downgrade(trans, path);
|
||||
if (path->ref)
|
||||
bch2_btree_path_downgrade(trans, path);
|
||||
}
|
||||
|
||||
int bch2_trans_relock(struct btree_trans *trans)
|
||||
|
||||
Reference in New Issue
Block a user