projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4469a5f
)
dm thin metadata: decrement counter after removing mapped block
author
Joe Thornber
<
[email protected]
>
Wed, 7 Mar 2012 19:09:44 +0000
(19:09 +0000)
committer
Alasdair G Kergon
<
[email protected]
>
Wed, 7 Mar 2012 19:09:44 +0000
(19:09 +0000)
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 <
[email protected]
>
Acked-by: Mike Snitzer <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Alasdair G Kergon <
[email protected]
>
drivers/md/dm-thin-metadata.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-thin-metadata.c
b/drivers/md/dm-thin-metadata.c
index 05b7ffc030edbf1223214245511353383ed79f8c..237571af77fdfcf552b7061fa13ff291514c86b7 100644
(file)
--- a/
drivers/md/dm-thin-metadata.c
+++ b/
drivers/md/dm-thin-metadata.c
@@
-1224,6
+1224,8
@@
static int __remove(struct dm_thin_device *td, dm_block_t block)
if (r)
return r;
+ td->mapped_blocks--;
+ td->changed = 1;
pmd->need_commit = 1;
return 0;