Whamcloud - gitweb
LU-11912 fid: clean up OBIF_MAX_OID and IDIF_MAX_OID
authorLi Dongyang <dongyangli@ddn.com>
Tue, 23 Nov 2021 23:45:48 +0000 (10:45 +1100)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 26 May 2023 10:22:25 +0000 (10:22 +0000)
commit9410077fc2e3491e9c9313cbb9d5855d62e7f90e
tree26f6bce6c777ecd91f0883a90b99e634a283aeaa
parent21cb22862eb11e248dff3a2d3c2dfea4091a95d9
LU-11912 fid: clean up OBIF_MAX_OID and IDIF_MAX_OID

Define the OBIF|IDIF_MAX_OID macros to 1ULL << OBIF|IDIF_MAX_BITS - 1
Clean up the callers and remove OBIF|IDIF_OID_MASK which are not used.

Lustre-change: https://review.whamcloud.com/45659
Lustre-commit: bb2f0dac868cf1321277bc3d7d6fc71f016d921b

Test-Parameters: trivial
Change-Id: I9a679b930c73da5904b2eb4c74f785fc1d27a8a0
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sergey Cheremencev <scherementsev@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/50759
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/lustre_fid.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/include/uapi/linux/lustre/lustre_ostid.h
lustre/ofd/ofd_dev.c
lustre/ofd/ofd_io.c
lustre/ofd/ofd_objects.c
lustre/utils/obd.c