All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH 2/2] should free ref_tree before return in ocfs2_remove_btree_range
@ 2013-06-10  6:30 Joseph Qi
  0 siblings, 0 replies; only message in thread
From: Joseph Qi @ 2013-06-10  6:30 UTC (permalink / raw)
  To: ocfs2-devel

In ocfs2_remove_btree_range, when ocfs2_reserve_blocks_for_rec_trunc
failed, it should ref_tree before return.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
---
 fs/ocfs2/alloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index 941e883..17e6bdd 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -5674,7 +5674,7 @@ int ocfs2_remove_btree_range(struct inode *inode,
 						 extra_blocks);
 	if (ret) {
 		mlog_errno(ret);
-		return ret;
+		goto bail;
 	}

 	mutex_lock(&tl_inode->i_mutex);
-- 
1.7.9.7

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-10  6:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-10  6:30 [Ocfs2-devel] [PATCH 2/2] should free ref_tree before return in ocfs2_remove_btree_range Joseph Qi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.