Skip to content

Commit

Permalink
[PATCH] Fix priority mistakes in fs/ocfs2/{alloc.c, dlmglue.c}
Browse files Browse the repository at this point in the history
Fixes priority mistakes similar to '!x & y'

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
  • Loading branch information
Roel Kluin authored and Mark Fasheh committed Nov 6, 2007
1 parent 0af4bd3 commit 3cf0c50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fs/ocfs2/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion fs/ocfs2/dlmglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 3cf0c50

Please sign in to comment.