Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f68d4f3d authored by Mikulas Patocka's avatar Mikulas Patocka Committed by Alasdair G Kergon
Browse files

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: default avatarMikulas Patocka <mpatocka@redhat.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent 7c5f78b9
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
+0 −3
Original line number Diff line number Diff line
@@ -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;