Now I'm actually not sure this is the best solution -- the comments in include/linux/cleanup.h say that gotos and cleanup helpers should never be mixed in the same function in the first place. So ideally we should not use these guard helpers until we develop helpers for everything that we want to clean up using gotos, like printbuf_exit, bch2_trans_put, and so on, and then switch over everything at once.
- [PATCH bcachefs-testing] bcachefs: fix goto jumping over g... Bharadwaj Raju
- Re: [PATCH bcachefs-testing] bcachefs: fix goto jumpi... Bharadwaj Raju
- Re: [PATCH bcachefs-testing] bcachefs: fix goto j... Kent Overstreet