summaryrefslogtreecommitdiffstats
path: root/drivers/md/bitmap.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2011-06-09 03:43:01 +0200
committerNeilBrown <neilb@suse.de>2011-06-09 03:43:01 +0200
commit97b3d4aacfbd7186faf34597fcf1f55b8579be17 (patch)
tree3ccd769c8003b3b999116bf9c1a09f0308d9806c /drivers/md/bitmap.c
parentmd/bitmap: use proper accessor macro (diff)
downloadlinux-97b3d4aacfbd7186faf34597fcf1f55b8579be17.tar.xz
linux-97b3d4aacfbd7186faf34597fcf1f55b8579be17.zip
md/bitmap: remove unused fields from struct bitmap
Get rid of ->syncchunk and ->counter_bits since they're never used. Also discard COUNTER_BYTE_RATIO which is unused. Signed-off-by: Namhyung Kim <namhyung@gmail.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/bitmap.c')
-rw-r--r--drivers/md/bitmap.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
index 663e6051bbad..574b09afedd3 100644
--- a/drivers/md/bitmap.c
+++ b/drivers/md/bitmap.c
@@ -1837,9 +1837,6 @@ int bitmap_create(mddev_t *mddev)
bitmap->chunks = chunks;
bitmap->pages = pages;
bitmap->missing_pages = pages;
- bitmap->counter_bits = COUNTER_BITS;
-
- bitmap->syncchunk = ~0UL;
#ifdef INJECT_FATAL_FAULT_1
bitmap->bp = NULL;