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>
Thu, 10 Mar 2022 13:32:49 +0000 (06:32 -0700)
commit86127bb18aea7e553cfd0842bcd33a6dc80bfbc8
treecdc41b97b40b80941dc69f1e261b1205681e8124
parente13fb1fe1483f6cd6452f25b866ffadf5ee0eff6
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