]> git.baikalelectronics.ru Git - kernel.git/commit
raid5: remove a call to get_start_sect
authorChristoph Hellwig <hch@lst.de>
Wed, 23 Aug 2017 17:10:28 +0000 (19:10 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 23 Aug 2017 18:49:49 +0000 (12:49 -0600)
commit5db00fbb49c305e69318c7c85edb634bcaa2ce97
tree39ad0c086e96568043919437f5571bc223b3033c
parent8beb6c5fd68cfaea86bfedcc55af8b07d91ad856
raid5: remove a call to get_start_sect

The block layer always remaps partitions before calling into the
->make_request methods of drivers.  Thus the call to get_start_sect in
in_chunk_boundary will always return 0 and can be removed.

Reviewed-by: Shaohua Li <shli@fb.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/raid5.c