|
|
@@ -1048,7 +1048,7 @@ static void passdown_double_checking_shared_status(struct dm_thin_new_mapping *m
|
|
|
* passdown we have to check that these blocks are now unused.
|
|
|
*/
|
|
|
int r = 0;
|
|
|
- bool used = true;
|
|
|
+ bool shared = true;
|
|
|
struct thin_c *tc = m->tc;
|
|
|
struct pool *pool = tc->pool;
|
|
|
dm_block_t b = m->data_block, e, end = m->data_block + m->virt_end - m->virt_begin;
|
|
|
@@ -1058,11 +1058,11 @@ static void passdown_double_checking_shared_status(struct dm_thin_new_mapping *m
|
|
|
while (b != end) {
|
|
|
/* find start of unmapped run */
|
|
|
for (; b < end; b++) {
|
|
|
- r = dm_pool_block_is_used(pool->pmd, b, &used);
|
|
|
+ r = dm_pool_block_is_shared(pool->pmd, b, &shared);
|
|
|
if (r)
|
|
|
goto out;
|
|
|
|
|
|
- if (!used)
|
|
|
+ if (!shared)
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
@@ -1071,11 +1071,11 @@ static void passdown_double_checking_shared_status(struct dm_thin_new_mapping *m
|
|
|
|
|
|
/* find end of run */
|
|
|
for (e = b + 1; e != end; e++) {
|
|
|
- r = dm_pool_block_is_used(pool->pmd, e, &used);
|
|
|
+ r = dm_pool_block_is_shared(pool->pmd, e, &shared);
|
|
|
if (r)
|
|
|
goto out;
|
|
|
|
|
|
- if (used)
|
|
|
+ if (shared)
|
|
|
break;
|
|
|
}
|
|
|
|