]> git.baikalelectronics.ru Git - kernel.git/commit
block: fix the count of PGPGOUT for WRITE_SAME
authorJiufei Xue <jiufei.xue@linux.alibaba.com>
Tue, 27 Feb 2018 12:10:03 +0000 (20:10 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 1 Mar 2018 15:41:23 +0000 (08:41 -0700)
commitf90f71a2a2a7f26823cc0a80b0f21c13063c2185
treeda84e1c427e6ef6f7bd1a203cfef657fbc5dca42
parent638427878053e925702b4920a7b63f2ff85f3a2e
block: fix the count of PGPGOUT for WRITE_SAME

The vm counters is counted in sectors, so we should do the conversation
in submit_bio.

Fixes: 0983b7ab3db2 ("block: replace bi_bdev with a gendisk pointer and partitions index")
Cc: stable@vger.kernel.org
Reviewed-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jiufei Xue <jiufei.xue@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c