Whamcloud - gitweb
LU-14520 ldlm: rename LCK_MAXMODE/LDLM_MAX_TYPE 60/56760/9
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 22 Oct 2024 23:28:01 +0000 (17:28 -0600)
committerOleg Drokin <green@whamcloud.com>
Sun, 2 Feb 2025 06:26:12 +0000 (06:26 +0000)
commit6701cadb075c1a3062ac71229c023199bca82617
treed5f238cc18de02287f83255947f883497b3effd8
parent948fcacd8be4e915219ada19e492e26486a231d3
LU-14520 ldlm: rename LCK_MAXMODE/LDLM_MAX_TYPE

Rename the "MAX" definitions for the ldlm_type and ldlm_mode enums,
since they do not actually represent the "maximum" value of the enum.
They are also better named following the enum, while we are at it.

    LCK_MINMODE -> LCK_MODE_MIN
    LCK_MAXMODE -> LCK_MODE_END
    LDLM_MIN_TYPE -> LDLM_TYPE_MIN
    LDLM_MAX_TYPE -> LDLM_TYPE_END

Add spelling.txt rules to notify in-flight patches of this change, but
include backward compatibility macros since they are in lustre_idl.h.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ia709775ffc60092883971853470195678b2b9b08
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56760
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
17 files changed:
contrib/scripts/spelling.txt
lustre/include/lustre_dlm.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/ldlm/ldlm_lock.c
lustre/ldlm/ldlm_lockd.c
lustre/ldlm/ldlm_request.c
lustre/ldlm/ldlm_resource.c
lustre/llite/dir.c
lustre/llite/file.c
lustre/llite/namei.c
lustre/lmv/lmv_obd.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/osc/osc_object.c
lustre/ptlrpc/wiretest.c
lustre/utils/wirecheck.c
lustre/utils/wiretest.c