summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2013-09-11 13:44:02 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2013-09-17 10:15:13 +0100
commit7e230f5774336c5c180d8aeab0e2cb1326c73fa3 (patch)
tree56b733f9e0ef00e4aa022adcd6a3c1e41fab1a84 /fs/gfs2/incore.h
parent6aa7640f306a1dd0923d29d9190c5686907d5140 (diff)
downloadop-kernel-dev-7e230f5774336c5c180d8aeab0e2cb1326c73fa3.zip
op-kernel-dev-7e230f5774336c5c180d8aeab0e2cb1326c73fa3.tar.gz
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 26aabd7..f1a3243 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 {
OpenPOWER on IntegriCloud