Bob Peterson 6aa7640f30 GFS2: optimize rbm_from_block wrt bi_start
In function gfs2_rbm_from_block, it starts by checking if the block
falls within the first bitmap. It does so by checking if the rbm's
offset is less than (rbm->bi->bi_start + rbm->bi->bi_len) * GFS2_NBBY.
However, the first bitmap will always have bi_start==0. Therefore
this is an unnecessary calculation in a function that gets called
billions of times. This patch removes the reference to bi_start.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2013-09-17 10:14:39 +01:00
..
2013-09-05 16:23:51 -04:00
2013-06-29 12:57:05 +04:00
2013-08-19 09:33:16 +01:00
2011-10-21 12:39:41 +01:00
2013-06-14 11:17:15 +01:00
2013-06-03 14:20:18 -07:00
2013-04-04 09:52:50 +01:00
2013-08-19 17:26:32 +01:00
2013-06-05 09:50:40 +01:00
2013-08-19 17:26:32 +01:00
2013-08-19 17:26:32 +01:00
2013-06-03 16:40:22 +01:00
2013-01-29 10:29:05 +00:00
2012-01-11 09:23:05 +00:00
2013-06-19 21:29:19 +01:00
2013-02-13 12:21:40 +00:00