diff options
Diffstat (limited to 'drivers/md/dm-thin-metadata.h')
-rw-r--r-- | drivers/md/dm-thin-metadata.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/md/dm-thin-metadata.h b/drivers/md/dm-thin-metadata.h index ed4725e67c96..b88918ccdaf6 100644 --- a/drivers/md/dm-thin-metadata.h +++ b/drivers/md/dm-thin-metadata.h | |||
@@ -90,11 +90,18 @@ int dm_pool_get_metadata_transaction_id(struct dm_pool_metadata *pmd, | |||
90 | 90 | ||
91 | /* | 91 | /* |
92 | * Hold/get root for userspace transaction. | 92 | * Hold/get root for userspace transaction. |
93 | * | ||
94 | * The metadata snapshot is a copy of the current superblock (minus the | ||
95 | * space maps). Userland can access the data structures for READ | ||
96 | * operations only. A small performance hit is incurred by providing this | ||
97 | * copy of the metadata to userland due to extra copy-on-write operations | ||
98 | * on the metadata nodes. Release this as soon as you finish with it. | ||
93 | */ | 99 | */ |
94 | int dm_pool_hold_metadata_root(struct dm_pool_metadata *pmd); | 100 | int dm_pool_reserve_metadata_snap(struct dm_pool_metadata *pmd); |
101 | int dm_pool_release_metadata_snap(struct dm_pool_metadata *pmd); | ||
95 | 102 | ||
96 | int dm_pool_get_held_metadata_root(struct dm_pool_metadata *pmd, | 103 | int dm_pool_get_metadata_snap(struct dm_pool_metadata *pmd, |
97 | dm_block_t *result); | 104 | dm_block_t *result); |
98 | 105 | ||
99 | /* | 106 | /* |
100 | * Actions on a single virtual device. | 107 | * Actions on a single virtual device. |