]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
dm snapshot: drop unused last_percent
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 21 Oct 2008 16:44:53 +0000 (17:44 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 21 Oct 2008 16:44:53 +0000 (17:44 +0100)
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 <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-snap.c
drivers/md/dm-snap.h

index 4ed9b7aaadbcd0c1a795c7fa17a8963b209436eb..b2d9d1ac28adb4554537fd3568ae4fe52e748a41 100644 (file)
@@ -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;
index 292c15609ae362fc344a9c46811285319a3f1bec..49c17bf12c211c760a1cad533b4e231e583c78bc 100644 (file)
@@ -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;