diff options
| author | Christoph Hellwig <hch@lst.de> | 2018-03-14 16:56:53 +0100 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2018-03-17 14:48:04 -0600 |
| commit | 52c5e62d4c4beecddc6e1b8045ce1d695fca1ba7 (patch) | |
| tree | d389960c44133cc310d2b463f05f4f10e62c7c05 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | block: Move SECTOR_SIZE and SECTOR_SHIFT definitions into <linux/blkdev.h> (diff) | |
| download | linux-52c5e62d4c4beecddc6e1b8045ce1d695fca1ba7.tar.gz linux-52c5e62d4c4beecddc6e1b8045ce1d695fca1ba7.zip | |
block: bio_check_eod() needs to consider partitions
bio_check_eod() should check partition size not the whole disk if
bio->bi_partno is non-zero. Do this by moving the call
to bio_check_eod() into blk_partition_remap().
Based on an earlier patch from Jiufei Xue.
Fixes: 74d46992e0d9 ("block: replace bi_bdev with a gendisk pointer and partitions index")
Reported-by: Jiufei Xue <jiufei.xue@linux.alibaba.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
