From: Arshad Hussain Date: Tue, 29 Oct 2019 14:54:22 +0000 (+0530) Subject: LU-12923 mdc: Use BUILD_BUG_ON() for mdc_reint.c X-Git-Tag: 2.13.51~128 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=9b9903816c96c87685273bbdb3aa3853666a37de LU-12923 mdc: Use BUILD_BUG_ON() for mdc_reint.c This patch replaces all CLASSERT() with kernel defined BUILD_BUG_ON() for file lustre/mdc/mdc_reint.c Test-Parameters: trivial Signed-off-by: Arshad Hussain Change-Id: I70a711f15e6471f7a89577e4d7d712cf46e4e0cd Reviewed-on: https://review.whamcloud.com/36717 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Petros Koutoupis Reviewed-by: Ben Evans Reviewed-by: Shaun Tancheff --- diff --git a/lustre/mdc/mdc_reint.c b/lustre/mdc/mdc_reint.c index 79473e8..cc48828 100644 --- a/lustre/mdc/mdc_reint.c +++ b/lustre/mdc/mdc_reint.c @@ -503,7 +503,7 @@ int mdc_file_resync(struct obd_export *exp, struct md_op_data *op_data) RETURN(rc); } - CLASSERT(sizeof(*rec) == sizeof(struct mdt_rec_reint)); + BUILD_BUG_ON(sizeof(*rec) != sizeof(struct mdt_rec_reint)); rec = req_capsule_client_get(&req->rq_pill, &RMF_REC_REINT); rec->rs_opcode = REINT_RESYNC; rec->rs_fsuid = op_data->op_fsuid;