summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ocfs2/dlmglue.c7
-rw-r--r--fs/ocfs2/extent_map.c3
2 files changed, 3 insertions, 7 deletions
diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c
index ad594fef2ab0..6e774c5ea13b 100644
--- a/fs/ocfs2/dlmglue.c
+++ b/fs/ocfs2/dlmglue.c
@@ -2508,9 +2508,7 @@ bail:
2508 ocfs2_inode_unlock(inode, ex); 2508 ocfs2_inode_unlock(inode, ex);
2509 } 2509 }
2510 2510
2511 if (local_bh) 2511 brelse(local_bh);
2512 brelse(local_bh);
2513
2514 return status; 2512 return status;
2515} 2513}
2516 2514
@@ -2593,8 +2591,7 @@ int ocfs2_inode_lock_atime(struct inode *inode,
2593 *level = 1; 2591 *level = 1;
2594 if (ocfs2_should_update_atime(inode, vfsmnt)) 2592 if (ocfs2_should_update_atime(inode, vfsmnt))
2595 ocfs2_update_inode_atime(inode, bh); 2593 ocfs2_update_inode_atime(inode, bh);
2596 if (bh) 2594 brelse(bh);
2597 brelse(bh);
2598 } else 2595 } else
2599 *level = 0; 2596 *level = 0;
2600 2597
diff --git a/fs/ocfs2/extent_map.c b/fs/ocfs2/extent_map.c
index e66a249fe07c..e3e2d1b2af51 100644
--- a/fs/ocfs2/extent_map.c
+++ b/fs/ocfs2/extent_map.c
@@ -590,8 +590,7 @@ int ocfs2_xattr_get_clusters(struct inode *inode, u32 v_cluster,
590 *extent_flags = rec->e_flags; 590 *extent_flags = rec->e_flags;
591 } 591 }
592out: 592out:
593 if (eb_bh) 593 brelse(eb_bh);
594 brelse(eb_bh);
595 return ret; 594 return ret;
596} 595}
597 596