Whamcloud - gitweb
LU-11285 mdt: improve IBITS lock definitions 55/35955/2
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 3 Jun 2019 18:21:53 +0000 (12:21 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 12 Sep 2019 03:51:18 +0000 (03:51 +0000)
commite71e845156becd1fc7efd676247bc85467881a38
tree71ab9cc12de48701a4bb173556001ba9cbf64b08
parent80eb31f5367f5b879b544a61a938a8acd7de9cf5
LU-11285 mdt: improve IBITS lock definitions

Move MDS_INODELOCK_* flags into a named enum, and add the definitions
for the newer flags into wirecheck/wiretest to ensure consistency.

Rename MDS_INODELOCK_MAXSHIFT to MDS_INODELOCK_NUMBITS to hold current
number of lockbits, rather than one less than the number of lockbits,
since the only two places that use it expect it to be one larger than
it is.  Fix uses of MDS_INODELOCK_NUMBITS to be number of locks.  This
does not change the value of MDS_INODELOCK_FULL, which is used in the
protocol to exchange supported lock bits between client and server.

Lustre-change: https://review.whamcloud.com/35045
Lustre-commit: 3611352b699ce479779c0ff92ca558d9321e58a2

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I0c2985bcc602b7182d5db2cf8d590923be2cab07
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/35955
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Stephan Thiell <sthiell@stanford.edu>
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/llite/file.c
lustre/ptlrpc/wiretest.c
lustre/utils/wirecheck.c
lustre/utils/wiretest.c