Skip to contentSkip to conversation

Fix priority mistakes in fs/ocfs2/{alloc.c, dlmglue.c}

PATCH New Roel Kluin 2 participants 2 messages Oct 26, 2007 OCFS2

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 Fix priority mistakes in fs/ocfs2/{alloc.c, dlmglue.c}

Fixes priority mistakes similar to '!x & y'

---

fs/ocfs2/alloc.c +1 -1
index 4ba7f0b..ce62c15 100644
@@ -3946,7 +3946,7 @@ static int __ocfs2_mark_extent_written(struct inode *inode,
 	struct ocfs2_merge_ctxt ctxt;
 	struct ocfs2_extent_list *rightmost_el;
 
-	if (!rec->e_flags & OCFS2_EXT_UNWRITTEN) {
+	if (!(rec->e_flags & OCFS2_EXT_UNWRITTEN)) {
 		ret = -EIO;
 		mlog_errno(ret);
 		goto out;
fs/ocfs2/dlmglue.c +1 -1
index 41c76ff..ef09fd2 100644
@@ -670,7 +670,7 @@ static inline void ocfs2_generic_handle_attach_action(struct ocfs2_lock_res *loc
 {
 	mlog_entry_void();
 
-	BUG_ON((!lockres->l_flags & OCFS2_LOCK_BUSY));
+	BUG_ON((!(lockres->l_flags & OCFS2_LOCK_BUSY)));
 	BUG_ON(lockres->l_flags & OCFS2_LOCK_ATTACHED);
 
 	if (lockres->l_requested > LKM_NLMODE &&
#1 lore raw

PATCH 1/1 Fix priority mistakes in fs/ocfs2/{alloc.c, dlmglue.c}

Quoted 1 line · Roel Kluin

Fixes priority mistakes similar to '!x & y'

Ok, that all looks good - thanks.

	--Mark

--
Mark Fasheh
Senior Software Developer, Oracle
[email protected]