From: Mikulas Patocka Date: Tue, 21 Oct 2008 16:44:53 +0000 (+0100) Subject: dm snapshot: drop unused last_percent X-Git-Tag: v2.6.28-rc1~41^2~11 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f68d4f3d394da5b1f69d855b8513f4256ccc803e;p=linux-2.6-omap-h63xx.git dm snapshot: drop unused last_percent The last_percent field is unused - remove it. (It dates from when events were triggered as each X% filled up.) Signed-off-by: Mikulas Patocka Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c index 4ed9b7aaadb..b2d9d1ac28a 100644 --- a/drivers/md/dm-snap.c +++ b/drivers/md/dm-snap.c @@ -600,7 +600,6 @@ static int snapshot_ctr(struct dm_target *ti, unsigned int argc, char **argv) s->valid = 1; s->active = 0; - s->last_percent = 0; init_rwsem(&s->lock); spin_lock_init(&s->pe_lock); s->ti = ti; diff --git a/drivers/md/dm-snap.h b/drivers/md/dm-snap.h index 292c15609ae..49c17bf12c2 100644 --- a/drivers/md/dm-snap.h +++ b/drivers/md/dm-snap.h @@ -158,9 +158,6 @@ struct dm_snapshot { /* Used for display of table */ char type; - /* The last percentage we notified */ - int last_percent; - mempool_t *pending_pool; struct exception_table pending;