aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMartin Wilck <[email protected]>2018-07-25 23:15:07 +0200
committerJens Axboe <[email protected]>2018-07-26 11:52:29 -0600
commitb403ea2404889e1227812fa9657667a1deb9c694 (patch)
treebbe37dba31a278aaaa897261576248d51e5dc7ff /tools/perf/scripts/python/export-to-postgresql.py
parent78e18063a9696c508dc95581fb8ec1aee539c4ee (diff)
block: bio_iov_iter_get_pages: fix size of last iovec
If the last page of the bio is not "full", the length of the last vector slot needs to be corrected. This slot has the index (bio->bi_vcnt - 1), but only in bio->bi_io_vec. In the "bv" helper array, which is shifted by the value of bio->bi_vcnt at function invocation, the correct index is (nr_pages - 1). v2: improved readability following suggestions from Ming Lei. v3: followed a formatting suggestion from Christoph Hellwig. Fixes: 2cefe4dbaadf ("block: add bio_iov_iter_get_pages()") Reviewed-by: Hannes Reinecke <[email protected]> Reviewed-by: Ming Lei <[email protected]> Reviewed-by: Jan Kara <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Martin Wilck <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions