Whamcloud - gitweb
LU-13798 llite: fix LL_SBI_FLAGS array again
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 6 Sep 2023 21:25:19 +0000 (15:25 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 11 Sep 2023 00:21:22 +0000 (00:21 +0000)
commitbc5219d278908550c03e8df307d1524764779432
tree1ce9dced7adfb877ce1bbe5082e08d471211ba45
parenteb70ba19e944cd765dfaccfff4f560b97c35383d
LU-13798 llite: fix LL_SBI_FLAGS array again

Errors are still being printed by ll_sbi_flags_seq_show():

  exa6: Revise array LL_SBI_FLAGS to match sbi flags please.

This is because LL_SBI_PARALLEL_DIO is a negative int so downshift
does not clear the high bits.  Make ll_flags unsigned to avoid this.

Move the LL_SBI_SNAPSHOT flag out of the way of other flags.
This is in-memory only, so it doesn't matter what value is used.

Test-Parameters: trivial
Fixes: 00152903a180 ("LU-13798 llite: parallelize direct i/o issuance")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I4b695da74a94d5f204804aa5ab16f83688f7a7f0
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52299
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/lproc_llite.c