From 48ed8ac50cd0c384c3ff4e5e7dbc79b8f1c24cef Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 21 Jul 2015 11:18:42 +0200 Subject: [PATCH] cleanup: indent --- lib/cache_segtype/cache.c | 4 ++-- lib/metadata/lv_manip.c | 3 ++- libdm/libdm-deptree.c | 2 -- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/cache_segtype/cache.c b/lib/cache_segtype/cache.c index 53c867e00..85cba1828 100644 --- a/lib/cache_segtype/cache.c +++ b/lib/cache_segtype/cache.c @@ -170,8 +170,8 @@ static void _destroy(struct segment_type *segtype) #ifdef DEVMAPPER_SUPPORT static int _target_present(struct cmd_context *cmd, - const struct lv_segment *seg __attribute__((unused)), - unsigned *attributes __attribute__((unused))) + const struct lv_segment *seg __attribute__((unused)), + unsigned *attributes __attribute__((unused))) { /* List of features with their kernel target version */ static const struct feature { diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index 116f099ae..c192d1bb1 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -6998,7 +6998,7 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg, if (seg_is_pool(lp)) status |= LVM_WRITE; /* Pool is always writable */ - else if (seg_is_cache(lp) || seg_is_thin_volume(lp)) { + else if (seg_is_cache(lp) || seg_is_thin_volume(lp)) { /* Resolve pool volume */ if (!lp->pool_name) { /* Should be already checked */ @@ -7222,6 +7222,7 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg, if (!archive(vg)) return_NULL; + if (pool_lv && seg_is_thin_volume(lp)) { /* Ensure all stacked messages are submitted */ if ((pool_is_active(pool_lv) || is_change_activating(lp->activate)) && diff --git a/libdm/libdm-deptree.c b/libdm/libdm-deptree.c index 040a82610..d28f0de19 100644 --- a/libdm/libdm-deptree.c +++ b/libdm/libdm-deptree.c @@ -3405,7 +3405,6 @@ int dm_tree_node_add_cache_target(struct dm_tree_node *node, if (!_link_tree_nodes(node, seg->metadata)) return_0; - if (!(seg->origin = dm_tree_find_node_by_uuid(node->dtree, origin_uuid))) { log_error("Missing cache's origin uuid %s.", @@ -3434,7 +3433,6 @@ int dm_tree_node_add_cache_target(struct dm_tree_node *node, } } - return 1; }