Whamcloud - gitweb
LU-10046 misc: replace LASSERT() with CLASSERT() 56/29256/2
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 29 Sep 2017 03:17:15 +0000 (21:17 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 24 Oct 2017 07:18:58 +0000 (07:18 +0000)
commit558c93dc56dc603be0b4e065a5ffe8b448f33bd5
treeb8e7e331704e6ae3feea964b21c26f262668e27f
parentaaa808e7a40198581956a1d648f413cc30e830ed
LU-10046 misc: replace LASSERT() with CLASSERT()

Some code consistency checks are being done at runtime with LASSERT()
when they could be done at compile time with CLASSERT(). This might
miss defects introduced into the code if that particular code path is
not exercised during testing.

Replace LASSERT() with CLASSERT() in such cases.

Style cleanup for related code.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I8dca903109b7151de59afe17fe9ca311119d1b36
Reviewed-on: https://review.whamcloud.com/29256
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
19 files changed:
lustre/include/lu_object.h
lustre/ldlm/ldlm_lockd.c
lustre/llite/dir.c
lustre/llite/vvp_dev.c
lustre/mdc/mdc_lib.c
lustre/mdc/mdc_request.c
lustre/mdd/mdd_object.c
lustre/mdt/mdt_hsm.c
lustre/mdt/mdt_lib.c
lustre/mgs/mgs_nids.c
lustre/obdclass/md_attrs.c
lustre/osc/osc_request.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_iam_lfix.c
lustre/ptlrpc/client.c
lustre/ptlrpc/lproc_ptlrpc.c
lustre/ptlrpc/nodemap_storage.c
lustre/ptlrpc/pack_generic.c
lustre/utils/create_iam.c