blk-wbt: account any writing command as a write
authorJens Axboe <axboe@kernel.dk>
Thu, 3 May 2018 15:14:57 +0000 (09:14 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 8 May 2018 19:18:27 +0000 (13:18 -0600)
commita1413ecb5e0de08da7e8e09a930c4602d627e621
tree3e46f20cde481e6ec324afb9a6b8f2ec4410e351
parentd916d8fa0e9d5eebc894b2a408ef3bbafcf16100
blk-wbt: account any writing command as a write

We currently special case WRITE and FLUSH, but we should really
just include any command with the write bit set. This ensures
that we account DISCARD.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-wbt.c