]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 15 Mar 2018 13:27:41 +0000 (08:27 -0500)
commit6b257c4638900cc5238fca2d2ab6ac298771effa
tree417d4c3455f94f4fe0d5724287505b58ea33a61f
parent89a855ae744dd896523f21dba09b55d30bb5b9b2
block: fix the count of PGPGOUT for WRITE_SAME

BugLink: http://bugs.launchpad.net/bugs/1755179
commit 7c5a0dcf557c6511a61e092ba887de28882fe857 upstream.

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

Fixes: 74d46992e0d9 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
block/blk-core.c