]> err.no Git - linux-2.6/commitdiff
[PATCH] Fix priority mistakes in fs/ocfs2/{alloc.c, dlmglue.c}
authorRoel Kluin <12o3l@tiscali.nl>
Fri, 26 Oct 2007 22:20:36 +0000 (00:20 +0200)
committerMark Fasheh <mark.fasheh@oracle.com>
Tue, 6 Nov 2007 23:31:39 +0000 (15:31 -0800)
Fixes priority mistakes similar to '!x & y'

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/alloc.c
fs/ocfs2/dlmglue.c

index 4ba7f0bdc248e0ff4656b3a5a9bd56851233636f..ce62c152823dd2df71b1d504cc598a1983409d5d 100644 (file)
@@ -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;
index 41c76ff2fcfbc4d725be65a4498b5fd603aa6f2c..ef09fd20f3a55b81fbdbebf3fbb3e3808f2e9e2f 100644 (file)
@@ -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 &&