summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2013-09-11 20:44:02 +0200
committerSteven Whitehouse <swhiteho@redhat.com>2013-09-17 11:15:13 +0200
commit7e230f5774336c5c180d8aeab0e2cb1326c73fa3 (patch)
tree56b733f9e0ef00e4aa022adcd6a3c1e41fab1a84 /fs/gfs2/incore.h
parentGFS2: optimize rbm_from_block wrt bi_start (diff)
downloadlinux-7e230f5774336c5c180d8aeab0e2cb1326c73fa3.tar.xz
linux-7e230f5774336c5c180d8aeab0e2cb1326c73fa3.zip
GFS2: introduce bi_blocks for optimization
This patch introduces a new field in the bitmap structure called bi_blocks. Its purpose is to save us from constantly multiplying bi_len by the constant GFS2_NBBY. It also paves the way for more optimization in a future patch. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r--fs/gfs2/incore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index 26aabd7caba7..f1a3243dfaf2 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -71,6 +71,7 @@ struct gfs2_bitmap {
u32 bi_offset;
u32 bi_start;
u32 bi_len;
+ u32 bi_blocks;
};
struct gfs2_rgrpd {