]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
dm thin metadata: decrement counter after removing mapped block
authorJoe Thornber <ejt@redhat.com>
Wed, 7 Mar 2012 19:09:44 +0000 (19:09 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Wed, 7 Mar 2012 19:09:44 +0000 (19:09 +0000)
commitaf63bcb817cf708f53bcae6edc2e3fb7dd7d8051
tree9c38899465b9bc3b8ae613b41a70ab0ff02030d1
parent4469a5f387fdde956894137751a41473618a4a52
dm thin metadata: decrement counter after removing mapped block

Correct the number of mapped sectors shown on a thin device's
status line by decrementing td->mapped_blocks in __remove() each time
a block is removed.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-thin-metadata.c