Whamcloud - gitweb
LU-9859 libcfs: rename CFS_TCD_TYPE_MAX to CFS_TCD_TYPE_CNT 76/39276/2
authorMr NeilBrown <neilb@suse.de>
Tue, 30 Jun 2020 14:37:14 +0000 (08:37 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 13 Aug 2020 06:03:55 +0000 (06:03 +0000)
commit1ccf112bd2a06db4d98255fd02b07d9edfcf4376
treeac5049e8a0ff8f1370017c4089d0be21f6716c5c
parent7fb17eb7b7e6035931987ae1e9589639114d210e
LU-9859 libcfs: rename CFS_TCD_TYPE_MAX to CFS_TCD_TYPE_CNT

The possible TCD types are 0, 1, 2.
So the MAX is 2.
The count of the number of types is 3.

CFS_TCD_TYPE_MAX is 3 - obviously wrong.

So rename it to CFS_TCD_TYPE_CNT.

Also there are 2 places where "3" is used rather
than the macro - fix them.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Ia4ce5fdb3225494f93d1eebd9fddfc15eb2b8316
Reviewed-on: https://review.whamcloud.com/39276
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/libcfs/tracefile.c