提交 df295d4a 编写于 作者: M Mark Fasheh 提交者: Joel Becker

ocfs2: honor O_(D)SYNC flag in fallocate

We need to sync the transaction which updates i_size if the file is marked
as needing sync semantics.
Signed-off-by: NMark Fasheh <mfasheh@suse.de>
Signed-off-by: NJoel Becker <jlbec@evilplan.org>
上级 0393afea
......@@ -1950,6 +1950,9 @@ static int __ocfs2_change_file_space(struct file *file, struct inode *inode,
if (ret < 0)
mlog_errno(ret);
if (file->f_flags & O_SYNC)
handle->h_sync = 1;
ocfs2_commit_trans(osb, handle);
out_inode_unlock:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册