Whamcloud - gitweb
EX-8270 ptlrpc: replace ELEMENT_SIZE
authorPatrick Farrell <pfarrell@whamcloud.com>
Wed, 20 Sep 2023 21:55:42 +0000 (17:55 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 22 Sep 2023 23:55:07 +0000 (23:55 +0000)
commit7273e6467670a6b22ae58be324290a0740134985
treeb93e74ab972829ecd1b77cec4fc30f46799b3201
parent840b58874fc5b021ef5a98ff8d20126c87054908
EX-8270 ptlrpc: replace ELEMENT_SIZE

The ELEMENT_SIZE macro is fine, but it takes a pool index
and doesn't handle the pool of order 0.  Change it to a
function.  (This is marginally less efficient in one spot,
since it replaces a shift with a divide, but it should be
just fine.)

Test-Parameters: trivial
Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I322037e50bbdb8e0274b37f82618b6907b6d2906
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52445
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/ptlrpc/sec_bulk.c