瀏覽代碼

ocfs2: Reset status if we want to restart file extension.

In __ocfs2_extend_allocation, we will restart our file extension
if ((!status) && restart_func). But there is a bug that the
status is still left as -EGAIN. This is really an old bug,
but it is masked by the return value of ocfs2_journal_dirty.
So it show up when we make ocfs2_journal_dirty void.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Tao Ma 15 年之前
父節點
當前提交
79681842e1
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      fs/ocfs2/file.c

+ 1 - 0
fs/ocfs2/file.c

@@ -684,6 +684,7 @@ restarted_transaction:
 		if (why == RESTART_META) {
 			mlog(0, "restarting function.\n");
 			restart_func = 1;
+			status = 0;
 		} else {
 			BUG_ON(why != RESTART_TRANS);