]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Mar 2018 06:41:05 +0000 (22:41 -0800)
commit17644a0bbb190b6286106e98392f3d60ee020a23
tree65335b6919522bab6b8c3b42ce8063dc4a808598
parenteae6179f55396f7ee708c7da1f9d84688412b62e
block: fix the count of PGPGOUT for WRITE_SAME

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>
block/blk-core.c