Skip to content

Commit

Permalink
ocfs2: Jump to correct label in ocfs2_expand_inline_dir()
Browse files Browse the repository at this point in the history
When we fail to insert extent in ocfs2_expand_inline_dir(), we should go to
out_commit, not out.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
  • Loading branch information
Tao Ma authored and Mark Fasheh committed Aug 22, 2008
1 parent a1af7d1 commit 83cab53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/ocfs2/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ static int ocfs2_expand_inline_dir(struct inode *dir, struct buffer_head *di_bh,
NULL);
if (ret) {
mlog_errno(ret);
goto out;
goto out_commit;
}

ret = ocfs2_journal_dirty(handle, di_bh);
Expand All @@ -1336,7 +1336,7 @@ static int ocfs2_expand_inline_dir(struct inode *dir, struct buffer_head *di_bh,
len, 0, NULL);
if (ret) {
mlog_errno(ret);
goto out;
goto out_commit;
}
}

Expand Down

0 comments on commit 83cab53

Please sign in to comment.