Skip to contentSkip to conversation

Go to the right place when we fail in ocfs2_expand_inline_dir.

PATCH New Tao Ma 2 participants 2 messages Aug 21, 2008 – Aug 22, 2008 OCFS2

lore
Share & tools
lore

Tao Ma

author
#0 lore raw

PATCH 1/1 Go to the right place when we fail in ocfs2_expand_inline_dir.

When we fail to insert extent in ocfs2_expand_inline_dir, we should go to out_commit, not out.

---
 fs/ocfs2/dir.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fs/ocfs2/dir.c +2 -2
index 8a18758..8e9c4a4 100644
@@ -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);
@@ -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;
 		}
 	}
 
Signature · 1 line
1.5.4.1
#1 lore raw

PATCH 1/1 Go to the right place when we fail in ocfs2_expand_inline_dir.

Quoted 2 lines · Tao Ma

When we fail to insert extent in ocfs2_expand_inline_dir, we should go to out_commit, not out.

This looks good, thanks.

	--Mark

--
Mark Fasheh