should free ref_tree before return in ocfs2_remove_btree_range
PATCH 2/2 should free ref_tree before return in ocfs2_remove_btree_range
In ocfs2_remove_btree_range, when ocfs2_reserve_blocks_for_rec_trunc failed, it should ref_tree before return.
Signed-off-by Joseph Qi <[email protected]>
--- fs/ocfs2/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/alloc.c +1 -1
@@ -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);
Signature · 1 line
1.7.9.7