io-wq: refactor *_get_acct()
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 22 Mar 2021 01:58:28 +0000 (01:58 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Mar 2021 13:47:12 +0000 (07:47 -0600)
commitffe014eeff3824f84d27957d31143470b02275e5
tree0c4e0b49f4e7bdf342bec56856c3a6b4d888414a
parentc88db637f6186f97403f763c20a5c40c19c8ec7c
io-wq: refactor *_get_acct()

Extract a helper for io_work_get_acct() and io_wqe_get_acct() to avoid
duplication.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c