Whamcloud - gitweb
LU-2771 dlmlock: compress out unused space
authorBruce Korb <bruce_korb@xyratex.com>
Thu, 11 Apr 2013 19:24:54 +0000 (12:24 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 7 Jun 2013 04:01:10 +0000 (00:01 -0400)
commitcaa55aec4ae0421db69a0b9feac5cf0880f1c098
tree735e80be2bd7f84863f7b6ac04cadcc8ee876a10
parent357de3461d95f693d416e380dd4963533f44ea25
LU-2771 dlmlock: compress out unused space

* lustre/include/lustre_dlm.h: Remove all bit fields and the unused
  weighing callback procedure.  respell LDLM_AST_DISCARD_DATA as
  LDLM_FL_AST_DISCARD_DATA to match other flags.
* .gitignore: ignore emacs temporary files
* autogen.sh: rebuild the lock bits, if autogen is available.
* contrib/bit-masks/lustre_dlm_flags.def: define the ldlm_lock flags
* contrib/bit-masks/lustre_dlm_flags.tpl: template for emitting text
* contrib/bit-masks/Makefile: construct the .c and .h files
  The .c file is for constructing a crash extension and is not
  preserved.
* contrib/bit-masks/.gitignore: ignore built products
* lustre/contrib/wireshark/packet-lustre.c: use built files instead
  of local versions of the defines.

In the rest of the modified sources, replace flag field references
with bit mask references.

* lustre/osc/osc_lock.c: removed osc_lock_weigh, too

Signed-off-by: Bruce Korb <bruce_korb@xyratex.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-by: Keith Mannthey <Keith.Mannthey@intel.com>
Change-Id: I104522e4012deb0dd8b9d12c2d1f3fd3851708cb
Reviewed-on: http://review.whamcloud.com/5312
Reviewed-by: Keith Mannthey <keith.mannthey@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: <bruce.korb@gmail.com>
27 files changed:
.gitignore
autogen.sh
contrib/bit-masks/.gitignore [new file with mode: 0644]
contrib/bit-masks/Makefile [new file with mode: 0644]
contrib/bit-masks/lustre_dlm_flags.def [new file with mode: 0644]
contrib/bit-masks/lustre_dlm_flags.tpl [new file with mode: 0644]
lustre/contrib/wireshark/packet-lustre.c
lustre/include/Makefile.am
lustre/include/lustre_dlm.h
lustre/include/lustre_dlm_flags.h [new file with mode: 0644]
lustre/ldlm/l_lock.c
lustre/ldlm/ldlm_extent.c
lustre/ldlm/ldlm_flock.c
lustre/ldlm/ldlm_lock.c
lustre/ldlm/ldlm_lockd.c
lustre/ldlm/ldlm_request.c
lustre/ldlm/ldlm_resource.c
lustre/liblustre/dir.c
lustre/liblustre/super.c
lustre/llite/dir.c
lustre/llite/file.c
lustre/mdc/mdc_locks.c
lustre/mgc/mgc_request.c
lustre/ofd/ofd_obd.c
lustre/osc/osc_lock.c
lustre/ost/ost_handler.c
lustre/quota/qsd_lock.c