aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/ocfs2/alloc.c2
-rw-r--r--fs/ocfs2/dlmglue.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index 4ba7f0bdc248..ce62c152823d 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -3946,7 +3946,7 @@ static int __ocfs2_mark_extent_written(struct inode *inode,
3946 struct ocfs2_merge_ctxt ctxt; 3946 struct ocfs2_merge_ctxt ctxt;
3947 struct ocfs2_extent_list *rightmost_el; 3947 struct ocfs2_extent_list *rightmost_el;
3948 3948
3949 if (!rec->e_flags & OCFS2_EXT_UNWRITTEN) { 3949 if (!(rec->e_flags & OCFS2_EXT_UNWRITTEN)) {
3950 ret = -EIO; 3950 ret = -EIO;
3951 mlog_errno(ret); 3951 mlog_errno(ret);
3952 goto out; 3952 goto out;
diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c
index 41c76ff2fcfb..ef09fd20f3a5 100644
--- a/fs/ocfs2/dlmglue.c
+++ b/fs/ocfs2/dlmglue.c
@@ -670,7 +670,7 @@ static inline void ocfs2_generic_handle_attach_action(struct ocfs2_lock_res *loc
670{ 670{
671 mlog_entry_void(); 671 mlog_entry_void();
672 672
673 BUG_ON((!lockres->l_flags & OCFS2_LOCK_BUSY)); 673 BUG_ON((!(lockres->l_flags & OCFS2_LOCK_BUSY)));
674 BUG_ON(lockres->l_flags & OCFS2_LOCK_ATTACHED); 674 BUG_ON(lockres->l_flags & OCFS2_LOCK_ATTACHED);
675 675
676 if (lockres->l_requested > LKM_NLMODE && 676 if (lockres->l_requested > LKM_NLMODE &&