Commit 3cf0c507 authored by Roel Kluin's avatar Roel Kluin Committed by Mark Fasheh
Browse files

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



Fixes priority mistakes similar to '!x & y'

Signed-off-by: default avatarRoel Kluin <12o3l@tiscali.nl>
Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
parent 0af4bd38
...@@ -3946,7 +3946,7 @@ static int __ocfs2_mark_extent_written(struct inode *inode, ...@@ -3946,7 +3946,7 @@ static int __ocfs2_mark_extent_written(struct inode *inode,
struct ocfs2_merge_ctxt ctxt; struct ocfs2_merge_ctxt ctxt;
struct ocfs2_extent_list *rightmost_el; struct ocfs2_extent_list *rightmost_el;
if (!rec->e_flags & OCFS2_EXT_UNWRITTEN) { if (!(rec->e_flags & OCFS2_EXT_UNWRITTEN)) {
ret = -EIO; ret = -EIO;
mlog_errno(ret); mlog_errno(ret);
goto out; goto out;
......
...@@ -670,7 +670,7 @@ static inline void ocfs2_generic_handle_attach_action(struct ocfs2_lock_res *loc ...@@ -670,7 +670,7 @@ static inline void ocfs2_generic_handle_attach_action(struct ocfs2_lock_res *loc
{ {
mlog_entry_void(); 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); BUG_ON(lockres->l_flags & OCFS2_LOCK_ATTACHED);
if (lockres->l_requested > LKM_NLMODE && if (lockres->l_requested > LKM_NLMODE &&
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment