Skip to content

Commit

Permalink
dm snapshot: drop unused last_percent
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mikulas Patocka authored and Alasdair G Kergon committed Oct 21, 2008
1 parent 7c5f78b commit f68d4f3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion drivers/md/dm-snap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions drivers/md/dm-snap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f68d4f3

Please sign in to comment.