Re: [PATCH 2/6] raid5: remove a call to get_start_sect

2017-08-24 Thread Christoph Hellwig
On Wed, Aug 23, 2017 at 11:23:38AM -0700, Shaohua Li wrote: > On Wed, Aug 23, 2017 at 07:10:28PM +0200, Christoph Hellwig wrote: > > 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

Re: [PATCH 2/6] raid5: remove a call to get_start_sect

2017-08-23 Thread Shaohua Li
On Wed, Aug 23, 2017 at 07:10:28PM +0200, Christoph Hellwig wrote: > 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. > > Signed-off-by: Christoph

[PATCH 2/6] raid5: remove a call to get_start_sect

2017-08-23 Thread Christoph Hellwig
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. Signed-off-by: Christoph Hellwig --- drivers/md/raid5.c | 4 +++- 1 file changed, 3