提交 1044e401 编写于 作者: M Mark Fasheh

ocfs2: Fix writeout in ocfs2_data_convert_worker()

Commit f1f54068 "optimized"
ocfs2_data_convert_worker() to "only do work for regular files".
Unfortunately, I left out a '!', which casued it to *skip* regular files.
This was hidden from testing until recently because the default data
journaling mode (data=ordered) doesn't exercise this code.
Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
Signed-off-by: NJoel Becker <joel.becker@oracle.com>
上级 7ad8b3d3
......@@ -3042,7 +3042,7 @@ static int ocfs2_data_convert_worker(struct ocfs2_lock_res *lockres,
inode = ocfs2_lock_res_inode(lockres);
mapping = inode->i_mapping;
if (S_ISREG(inode->i_mode))
if (!S_ISREG(inode->i_mode))
goto out;
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册