diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2017-12-08 13:17:34 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2017-12-08 13:21:14 +0100 |
commit | 4e8af1d3aa136eae8dbb66186bfc331b0b2887e6 (patch) | |
tree | d4c0d7433b2a6b8d8ef547ac994147a0a51ba259 /tools/vgchange.c | |
parent | 14b1e5270dbca71870a79b37d6614e2cb96b180f (diff) | |
download | lvm2-4e8af1d3aa136eae8dbb66186bfc331b0b2887e6.tar.gz |
vgchange: drop extra counting
As the loop for background polling _poll_lvs_in_vg checks for active LVs,
avoid doing unnecessary extra check before.
Diffstat (limited to 'tools/vgchange.c')
-rw-r--r-- | tools/vgchange.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgchange.c b/tools/vgchange.c index ae97a4a1d..48e64c50e 100644 --- a/tools/vgchange.c +++ b/tools/vgchange.c @@ -178,7 +178,7 @@ int vgchange_background_polling(struct cmd_context *cmd, struct volume_group *vg { int polled; - if (lvs_in_vg_activated(vg) && background_polling()) { + if (background_polling()) { polled = _poll_lvs_in_vg(cmd, vg); if (polled) log_print_unless_silent("Background polling started for %d logical volume(s) " |