io-wq: use IO_WQ_ACCT_NR rather than hardcoded number
authorHao Xu <haoxu@linux.alibaba.com>
Sun, 6 Feb 2022 09:52:41 +0000 (17:52 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Feb 2022 16:40:43 +0000 (09:40 -0700)
commit662edc8a1a3bc170bb16f0c0302dbdf2076f0105
tree003e3b4df4a4a28ff06f95f5696e8a058749e869
parent46fa4e4066ec3445edab7332367b6ceb34a717e1
io-wq: use IO_WQ_ACCT_NR rather than hardcoded number

It's better to use the defined enum stuff not the hardcoded number to
define array.

Signed-off-by: Hao Xu <haoxu@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220206095241.121485-4-haoxu@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c