dm: simplify dm_start_io_acct
authorMike Snitzer <snitzer@kernel.org>
Fri, 25 Mar 2022 18:12:47 +0000 (14:12 -0400)
committerMike Snitzer <snitzer@kernel.org>
Thu, 5 May 2022 21:31:34 +0000 (17:31 -0400)
commit3b03f7c1242c754f0c474b37eec7d79107b9f375
tree7f9f9f10e9b34539382daa24b4f8404b09608283
parent4857abf66434d96dec1a9209bbfbf55e2ee359fa
dm: simplify dm_start_io_acct

Pull common DM_IO_ACCOUNTED check out to beginning of dm_start_io_acct.
Also, use dm_tio_is_normal (and move it to dm-core.h).

Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-core.h
drivers/md/dm.c