On Thu, 23 Jun 2016, Arnd Bergmann wrote:
Several drivers use an expensive do_div() to compute the number
of logical or physical blocks in a blockdev, which can be done
more efficiently using a shift, since the blocksize is always
a power of two number.
Let's introduce
On Thu, 23 Jun 2016, Arnd Bergmann wrote:
Several drivers use an expensive do_div() to compute the number
of logical or physical blocks in a blockdev, which can be done
more efficiently using a shift, since the blocksize is always
a power of two number.
Let's introduce
Looks good, for the series:
Reviewed-by: Sagi Grimbeg
Looks good, for the series:
Reviewed-by: Sagi Grimbeg
Thanks Arnd,
the series looks fine to me:
Reviewed-by: Christoph Hellwig
Thanks Arnd,
the series looks fine to me:
Reviewed-by: Christoph Hellwig
Several drivers use an expensive do_div() to compute the number
of logical or physical blocks in a blockdev, which can be done
more efficiently using a shift, since the blocksize is always
a power of two number.
Let's introduce bdev_logical_block_count() and bdev_physical_block_count()
helper
Several drivers use an expensive do_div() to compute the number
of logical or physical blocks in a blockdev, which can be done
more efficiently using a shift, since the blocksize is always
a power of two number.
Let's introduce bdev_logical_block_count() and bdev_physical_block_count()
helper
8 matches
Mail list logo