Re: [PATCH] ocfs2: validate cl_bpc in ocfs2_block_group_alloc to prevent divide-by-zero
From: Deepanshu Kartikey
Date: Mon Oct 27 2025 - 07:46:12 EST
Hi Joseph,
Thank you for the review and suggestion!
You're absolutely right that moving the validation to
ocfs2_validate_inode_block()
would be cleaner and benefit all code paths. I'll revise the patch to add the
validation there, checking for OCFS2_CHAIN_FL before validating cl_bpc.
I'll send v2 shortly.
Thanks,
Deepanshu