Re: [PATCH] btrfs: free qgroup configuration when quota enable fails

From: Guanjie Chen

Date: Sat Aug 15 2026 - 02:46:44 EST


Hi Qu,

Thanks for the review.

I agree the error path should be reversed, even though btrfs_free_qgroup_config() has defensive checks so it won't UAF. But this isn't a one-liner – maybe we can refactor the whole init/cleanup flow later and fix it properly.

As for contributing: I know there's been lots of LLM noise lately, and I don't want to add to it. I've been studying btrfs for about 2~3 years now. For my next patch, would it help if I clearly explain the root cause, my reasoning, and the solution in the commit message or cover letter? I'd like to make review smoother.

Thanks again for your time.

Best,
Guanjie