summaryrefslogtreecommitdiff
path: root/drivers/md/bitmap.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2011-06-09 01:43:01 (GMT)
committerNeilBrown <neilb@suse.de>2011-06-09 01:43:01 (GMT)
commit97b3d4aacfbd7186faf34597fcf1f55b8579be17 (patch)
tree3ccd769c8003b3b999116bf9c1a09f0308d9806c /drivers/md/bitmap.c
parent27d5ea04d08bea37bf651090e5f3c573d2390df8 (diff)
downloadlinux-97b3d4aacfbd7186faf34597fcf1f55b8579be17.tar.xz
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 663e605..574b09a 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;