1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cache: fixed copy&paste from last commit

This commit is contained in:
Zdenek Kabelac 2016-09-09 21:26:38 +02:00
parent ca7921f54b
commit 05dc70e22e

View File

@ -1432,7 +1432,7 @@ int dev_manager_cache_status(struct dev_manager *dm,
c->total_blocks);
(*status)->metadata_usage = dm_make_percent(c->metadata_used_blocks,
c->metadata_total_blocks);
(*status)->dirty_usage = (s->cache->used_blocks) ?
(*status)->dirty_usage = (c->used_blocks) ?
dm_make_percent(c->dirty_blocks,
c->used_blocks) : DM_PERCENT_0;
}