]> git.baikalelectronics.ru Git - kernel.git/commit
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 21:10:49 +0000 (15:10 -0600)
commit4b4c87b80c21fc8c6e065e7579333a07cbe33188
tree7f23ce098fc82a30c295db0627f4a5767ae0a572
parentdd986c008fefd550a2e51405bb7d57ea2dcbd539
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>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-wbt.c