Whamcloud - gitweb
LU-2771 ldlm: remove obsolete LDLM_FL_SERVER_LOCK 63/49563/2
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 5 Jan 2023 22:44:50 +0000 (15:44 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 19 Jan 2023 15:32:21 +0000 (15:32 +0000)
The LDLM_FL_SERVER_LOCK flag and accompanying accessor macros have
never been used since they were first introduced.  Remove them.
It looks like this may have been duplicated by LDLM_FL_NS_SRV.

Test-Parameters: trivial
Fixes: caa55aec4a ("LU-2771 dlmlock: compress out unused space")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Iffc9b126334a327a9054f9acae86f4a0d03ebbe5
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49563
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Vitaliy Kuznetsov <vkuznetsov@ddn.com>
Reviewed-by: jsimmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
contrib/debug_tools/epython_scripts/ldlm_lockflags.py
lustre/include/lustre_dlm_flags.h

index 5788e3e..c1ef74b 100644 (file)
@@ -52,7 +52,6 @@ ldlm_flags_tbl = {
     0x0001000000000000:  "NO_LRU",                  # bit 48
     0x0002000000000000:  "FAIL_NOTIFIED",           # bit 49
     0x0004000000000000:  "DESTROYED",               # bit 50
-    0x0008000000000000:  "SERVER_LOCK",             # bit 51
     0x0010000000000000:  "RES_LOCKED",              # bit 52
     0x0020000000000000:  "WAITED",                  # bit 53
     0x0040000000000000:  "NS_SRV",                  # bit 54
index 1fa049d..1af4284 100644 (file)
 #define ldlm_set_destroyed(_l)          LDLM_SET_FLAG((  _l), 1ULL << 50)
 #define ldlm_clear_destroyed(_l)        LDLM_CLEAR_FLAG((_l), 1ULL << 50)
 
-/** flag whether this is a server namespace lock */
-#define LDLM_FL_SERVER_LOCK             0x0008000000000000ULL // bit  51
-#define ldlm_is_server_lock(_l)         LDLM_TEST_FLAG(( _l), 1ULL << 51)
-#define ldlm_set_server_lock(_l)        LDLM_SET_FLAG((  _l), 1ULL << 51)
-#define ldlm_clear_server_lock(_l)      LDLM_CLEAR_FLAG((_l), 1ULL << 51)
-
 /**
  * It's set in lock_res_and_lock() and unset in unlock_res_and_lock().
  *