mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: rename internal define
More descriptive name of #define.
This commit is contained in:
parent
39703cb485
commit
719d099693
@ -106,7 +106,7 @@
|
|||||||
#define DEFAULT_THIN_POOL_METADATA_REQUIRE_SEPARATE_PVS 0
|
#define DEFAULT_THIN_POOL_METADATA_REQUIRE_SEPARATE_PVS 0
|
||||||
#define DEFAULT_THIN_POOL_MAX_METADATA_SIZE (16 * 1024 * 1024) /* KB */
|
#define DEFAULT_THIN_POOL_MAX_METADATA_SIZE (16 * 1024 * 1024) /* KB */
|
||||||
#define DEFAULT_THIN_POOL_MIN_METADATA_SIZE 2048 /* KB */
|
#define DEFAULT_THIN_POOL_MIN_METADATA_SIZE 2048 /* KB */
|
||||||
#define DEFAULT_THIN_POOL_OPTIMAL_SIZE (128 * 1024 * 1024) /* KB */
|
#define DEFAULT_THIN_POOL_OPTIMAL_METADATA_SIZE (128 * 1024 * 1024) /* KB */
|
||||||
#define DEFAULT_THIN_POOL_CHUNK_SIZE_POLICY "generic"
|
#define DEFAULT_THIN_POOL_CHUNK_SIZE_POLICY "generic"
|
||||||
#define DEFAULT_THIN_POOL_CHUNK_SIZE 64 /* KB */
|
#define DEFAULT_THIN_POOL_CHUNK_SIZE 64 /* KB */
|
||||||
#define DEFAULT_THIN_POOL_CHUNK_SIZE_PERFORMANCE 512 /* KB */
|
#define DEFAULT_THIN_POOL_CHUNK_SIZE_PERFORMANCE 512 /* KB */
|
||||||
|
@ -666,7 +666,7 @@ int update_thin_pool_params(struct cmd_context *cmd,
|
|||||||
|
|
||||||
/* Check if we should eventually use bigger chunk size */
|
/* Check if we should eventually use bigger chunk size */
|
||||||
while ((pool_metadata_size >
|
while ((pool_metadata_size >
|
||||||
(DEFAULT_THIN_POOL_OPTIMAL_SIZE / SECTOR_SIZE)) &&
|
(DEFAULT_THIN_POOL_OPTIMAL_METADATA_SIZE / SECTOR_SIZE)) &&
|
||||||
(*chunk_size < DM_THIN_MAX_DATA_BLOCK_SIZE)) {
|
(*chunk_size < DM_THIN_MAX_DATA_BLOCK_SIZE)) {
|
||||||
*chunk_size <<= 1;
|
*chunk_size <<= 1;
|
||||||
pool_metadata_size >>= 1;
|
pool_metadata_size >>= 1;
|
||||||
|
@ -507,7 +507,7 @@ static int _lv_set_pool_params(struct lvcreate_params *lp,
|
|||||||
pool_metadata_size = extents * vg->extent_size /
|
pool_metadata_size = extents * vg->extent_size /
|
||||||
(lp->chunk_size * (SECTOR_SIZE / 64));
|
(lp->chunk_size * (SECTOR_SIZE / 64));
|
||||||
while ((pool_metadata_size >
|
while ((pool_metadata_size >
|
||||||
(2 * DEFAULT_THIN_POOL_OPTIMAL_SIZE / SECTOR_SIZE)) &&
|
(2 * DEFAULT_THIN_POOL_OPTIMAL_METADATA_SIZE / SECTOR_SIZE)) &&
|
||||||
lp->chunk_size < DM_THIN_MAX_DATA_BLOCK_SIZE) {
|
lp->chunk_size < DM_THIN_MAX_DATA_BLOCK_SIZE) {
|
||||||
lp->chunk_size <<= 1;
|
lp->chunk_size <<= 1;
|
||||||
pool_metadata_size >>= 1;
|
pool_metadata_size >>= 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user