]> sourceware.org Git - lvm2.git/commitdiff
Get rid of hardcoded 0xffdf cluster lock flag.
authorMilan Broz <mbroz@redhat.com>
Wed, 9 Dec 2009 18:16:38 +0000 (18:16 +0000)
committerMilan Broz <mbroz@redhat.com>
Wed, 9 Dec 2009 18:16:38 +0000 (18:16 +0000)
There is hidded change - the upper flags (0xffff0000)
and now not cleared, but there are unused anyway.

lib/locking/cluster_locking.c

index eb0924198b6a95802981758999964e314a86106e..b031f12cf19162adbd70325d4bd974d4e775d492 100644 (file)
@@ -415,7 +415,7 @@ int lock_resource(struct cmd_context *cmd, const char *resource, uint32_t flags)
                clvmd_cmd = CLVMD_CMD_LOCK_LV;
                strcpy(lockname, resource);
                lock_scope = "LV";
-               flags &= 0xffdf;        /* Mask off HOLD flag */
+               flags &= ~LCK_HOLD;     /* Mask off HOLD flag */
                break;
 
        default:
This page took 0.03762 seconds and 5 git commands to generate.