mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-25 21:57:45 +03:00
cache: fix regression and invert test
Last commit c710f02e0181cc2db5455f0c98033247a70ecc30 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…
x
Reference in New Issue
Block a user