bcachefs: Don't touch c->flags in bch2_trans_iter_init()
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 21 Oct 2022 21:26:49 +0000 (17:26 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:44 +0000 (17:09 -0400)
commitc81f5836a41fc796f37a5ff2bb39f7c76d07d35d
treebeb7fc391f07699376f1e6ba09a4b3da5fc83431
parent3e3e02e6bce627ed9e3a5d9fd3118e6569dc2548
bcachefs: Don't touch c->flags in bch2_trans_iter_init()

This moves the JOURNAL_REPLAY_DONE flag check from
bch2_trans_iter_init() to bch2_trans_init(), where we stash a copy in
btree_trans - gaining us a small performance improvement.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_iter.c