|
@@ -544,7 +544,7 @@ static int sm_metadata_copy_root(struct dm_space_map *sm, void *where_le, size_t
|
|
|
|
|
|
static int sm_metadata_extend(struct dm_space_map *sm, dm_block_t extra_blocks);
|
|
|
|
|
|
-static struct dm_space_map ops = {
|
|
|
+static const struct dm_space_map ops = {
|
|
|
.destroy = sm_metadata_destroy,
|
|
|
.extend = sm_metadata_extend,
|
|
|
.get_nr_blocks = sm_metadata_get_nr_blocks,
|
|
@@ -671,7 +671,7 @@ static int sm_bootstrap_copy_root(struct dm_space_map *sm, void *where,
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
|
-static struct dm_space_map bootstrap_ops = {
|
|
|
+static const struct dm_space_map bootstrap_ops = {
|
|
|
.destroy = sm_bootstrap_destroy,
|
|
|
.extend = sm_bootstrap_extend,
|
|
|
.get_nr_blocks = sm_bootstrap_get_nr_blocks,
|