[Ocfs2-devel] [PATCH]Warning fix for dlm.c
Rusty Lynch
rusty at linux.co.intel.com
Fri Mar 19 14:56:27 CST 2004
The following patch fixes a couple of minor warnings about lockflags
and lock_path not being used.
--rusty
Index: src/dlm.c
===================================================================
--- src/dlm.c (revision 793)
+++ src/dlm.c (working copy)
@@ -1233,12 +1233,10 @@
ocfs_lock_res *lockres = NULL;
int k = 0;
struct buffer_head *tmpbh = NULL, **b = NULL;
- int lockflags = (lock_id >= osb->vol_layout.bitmap_off ? OCFS_BH_CACHED : 0);
/* TODO: 40 bytes of "bool" sitting on the stack for now. move */
/* mutually exclusive flags into an enum and switch on them */
bool disk_vote = false;
bool no_owner = false, owner_dead = false, wait_on_recovery = false;
- int lock_path = invalid_path;
__u32 extra_lock_flags = 0;
LOG_ENTRY_ARGS ("(0x%08x, %u.%u, %u, %u, 0x%08x, 0x%08x)\n", osb,
More information about the Ocfs2-devel
mailing list