diff options
Diffstat (limited to 'drivers/md/dm-thin.c')
-rw-r--r-- | drivers/md/dm-thin.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c index dadd9696340c..ca8af21bf644 100644 --- a/drivers/md/dm-thin.c +++ b/drivers/md/dm-thin.c | |||
@@ -1048,7 +1048,7 @@ static void passdown_double_checking_shared_status(struct dm_thin_new_mapping *m | |||
1048 | * passdown we have to check that these blocks are now unused. | 1048 | * passdown we have to check that these blocks are now unused. |
1049 | */ | 1049 | */ |
1050 | int r = 0; | 1050 | int r = 0; |
1051 | bool used = true; | 1051 | bool shared = true; |
1052 | struct thin_c *tc = m->tc; | 1052 | struct thin_c *tc = m->tc; |
1053 | struct pool *pool = tc->pool; | 1053 | struct pool *pool = tc->pool; |
1054 | dm_block_t b = m->data_block, e, end = m->data_block + m->virt_end - m->virt_begin; | 1054 | 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 | |||
1058 | while (b != end) { | 1058 | while (b != end) { |
1059 | /* find start of unmapped run */ | 1059 | /* find start of unmapped run */ |
1060 | for (; b < end; b++) { | 1060 | for (; b < end; b++) { |
1061 | r = dm_pool_block_is_used(pool->pmd, b, &used); | 1061 | r = dm_pool_block_is_shared(pool->pmd, b, &shared); |
1062 | if (r) | 1062 | if (r) |
1063 | goto out; | 1063 | goto out; |
1064 | 1064 | ||
1065 | if (!used) | 1065 | if (!shared) |
1066 | break; | 1066 | break; |
1067 | } | 1067 | } |
1068 | 1068 | ||
@@ -1071,11 +1071,11 @@ static void passdown_double_checking_shared_status(struct dm_thin_new_mapping *m | |||
1071 | 1071 | ||
1072 | /* find end of run */ | 1072 | /* find end of run */ |
1073 | for (e = b + 1; e != end; e++) { | 1073 | for (e = b + 1; e != end; e++) { |
1074 | r = dm_pool_block_is_used(pool->pmd, e, &used); | 1074 | r = dm_pool_block_is_shared(pool->pmd, e, &shared); |
1075 | if (r) | 1075 | if (r) |
1076 | goto out; | 1076 | goto out; |
1077 | 1077 | ||
1078 | if (used) | 1078 | if (shared) |
1079 | break; | 1079 | break; |
1080 | } | 1080 | } |
1081 | 1081 | ||