Whamcloud - gitweb
LU-12923 mdc: Use BUILD_BUG_ON() for mdc_reint.c 17/36717/2
authorArshad Hussain <arshad.super@gmail.com>
Tue, 29 Oct 2019 14:54:22 +0000 (20:24 +0530)
committerOleg Drokin <green@whamcloud.com>
Fri, 6 Dec 2019 01:15:34 +0000 (01:15 +0000)
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 <arshad.super@gmail.com>
Change-Id: I70a711f15e6471f7a89577e4d7d712cf46e4e0cd
Reviewed-on: https://review.whamcloud.com/36717
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Petros Koutoupis <pkoutoupis@cray.com>
Reviewed-by: Ben Evans <bevans@cray.com>
Reviewed-by: Shaun Tancheff <stancheff@cray.com>
lustre/mdc/mdc_reint.c

index 79473e8..cc48828 100644 (file)
@@ -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;