-
Andreas Dilger authored
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. Signed-off-by:
Andreas Dilger <adilger@whamcloud.com> Change-Id: I0c2985bcc602b7182d5db2cf8d590923be2cab07 Reviewed-on: https://review.whamcloud.com/35045 Reviewed-by:
Patrick Farrell <pfarrell@whamcloud.com> Reviewed-by:
Mike Pershin <mpershin@whamcloud.com> Tested-by:
jenkins <devops@whamcloud.com> Tested-by:
Maloo <maloo@whamcloud.com> Reviewed-by:
Oleg Drokin <green@whamcloud.com>
3611352b