Whamcloud - gitweb
LU-11085 ldlm: save space in struct ldlm_lock 31/53931/9
authorMr NeilBrown <neilb@suse.de>
Mon, 5 Feb 2024 22:46:49 +0000 (09:46 +1100)
committerOleg Drokin <green@whamcloud.com>
Tue, 21 May 2024 18:21:06 +0000 (18:21 +0000)
commitd199b178ed694dfafa3082604a440d08166067ce
treeebde176e04a82f807e1bdc9a019fe4cfb5c7a016
parentc5b8ac83bdc199e564df3a9c3636e9ad89c03ef3
LU-11085 ldlm: save space in struct ldlm_lock

Moving the 'interval' handle into ldlm_lock has made the structure
bigger.  Compensate for this by shared space for fields only needs for
specific lock types.

i.e.  some fields are only needed for EXTENT locks, some for FLOCK
locks, some for PLAIN and IBITS which use "skiplists".

One x86_64 the reduces the size of ldlm_lock to what is was before the
previous patch.  A future patch will reduce it even more.

As extent and flock both used the interval tree node, they now have
different instances.  So the names in flock are changed.  Both of
these will disappear in future patches.

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Iec92a41c174e4884852ebf8fbb2cd50d4e165035
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53931
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
lustre/include/lustre_dlm.h
lustre/ldlm/ldlm_flock.c
lustre/ldlm/ldlm_lock.c