Re: [PATCH] bcachefs: Re-add seemingly duplicate bch2_trans_begin()

Kent Overstreet
2025-06-08T12:08:37Z

On Sun, Jun 08, 2025 at 06:05:11PM +0800, Alan Huang wrote:
> On Jun 8, 2025, at 08:28, Kent Overstreet <kent.overstreet@linux.dev> wrote:
> >
> > Include a comment this time - we can't call iter_init() in a transaction
> > restart, and write bufer flush doesn't guarantee that we aren't in a
> > restart when it returns.
>
> Why would it related to iter_init(), bch2_trans_begin(trans) is at the top of for_each_btree_key_max

Ok never mind :)