Mikulas Patocka
f9a8e0cd26
dm thin: optimize power of two block size
...
dm-thin will be most likely used with a block size that is a power of
two. So it should be optimized for this case.
This patch changes division and modulo operations to shifts and bit
masks if block size is a power of two.
A test that bi_sector is divisible by a block size is removed from
io_overlaps_block. Device mapper never sends bios that span a block
boundary. Consequently, if we tested that bi_size is equivalent to block
size, bi_sector must already be on a block boundary.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
2012-07-27 15:08:03 +01:00
..
2012-07-27 15:07:58 +01:00
2012-05-22 13:55:34 +10:00
2012-05-22 13:55:34 +10:00
2009-04-02 19:55:23 +01:00
2012-03-28 18:41:29 +01:00
2012-03-28 18:41:29 +01:00
2012-07-27 15:07:59 +01:00
2012-03-28 18:41:26 +01:00
2012-07-27 15:07:59 +01:00
2010-08-12 04:13:51 +01:00
2012-03-28 18:41:26 +01:00
2012-03-07 19:09:37 +00:00
2012-03-28 18:41:26 +01:00
2011-10-31 20:18:58 +00:00
2012-03-28 18:41:26 +01:00
2011-11-06 19:44:47 -08:00
2012-05-10 23:21:39 -04:00
2009-09-04 20:40:34 +01:00
2012-03-28 18:41:26 +01:00
2012-06-03 00:29:58 +01:00
2008-10-10 13:36:58 +01:00
2011-10-31 19:31:18 -04:00
2009-06-22 10:12:27 +01:00
2012-03-28 18:41:26 +01:00
2012-07-27 15:08:00 +01:00
2012-07-27 15:08:00 +01:00
2012-07-20 14:25:03 +01:00
2012-03-28 18:41:26 +01:00
2012-03-28 18:41:26 +01:00
2011-10-31 19:31:19 -04:00
2011-10-31 19:31:19 -04:00
2012-07-27 15:08:00 +01:00
2012-07-27 15:08:02 +01:00
2010-03-07 17:04:49 -08:00
2012-03-28 18:41:26 +01:00
2010-08-12 04:14:14 +01:00
2012-07-27 15:07:58 +01:00
2012-07-27 15:07:57 +01:00
2012-07-27 15:08:03 +01:00
2011-10-31 19:31:19 -04:00
2007-10-20 02:01:26 +01:00
2012-03-28 18:43:38 +01:00
2010-08-12 04:14:12 +01:00
2012-07-27 15:08:03 +01:00
2011-10-31 20:19:04 +00:00
2012-03-19 12:46:39 +11:00
2012-07-27 15:07:58 +01:00
2012-04-02 09:48:37 +10:00
2011-10-11 16:48:54 +11:00
2012-03-28 18:43:38 +01:00
2012-07-19 15:59:18 +10:00
2012-05-22 13:55:07 +10:00
2012-07-03 15:56:52 +10:00
2011-10-11 16:48:57 +11:00
2012-04-03 15:37:26 +10:00
2012-03-19 12:46:39 +11:00
2012-07-19 15:59:18 +10:00
2011-12-23 10:17:56 +11:00
2012-07-03 17:45:31 +10:00
2012-05-22 13:55:05 +10:00
2012-07-04 09:35:35 +10:00
2012-05-22 13:53:47 +10:00