mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cache: fix regression and invert test
Last commit c710f02e01
converting code to use lv_update_and_reload()
intoduced invalid test for error result.
Fix it and properly check for if (!...)
This commit is contained in:
parent
386fbf8e0d
commit
d274724c83
@ -224,7 +224,7 @@ int lv_cache_remove(struct logical_volume *cache_lv)
|
||||
cache_seg->policy_argv = NULL;
|
||||
|
||||
/* update the kernel to put the cleaner policy in place */
|
||||
if (lv_update_and_reload(cache_lv))
|
||||
if (!lv_update_and_reload(cache_lv))
|
||||
return_0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user