提交 6d4b5124 编写于 作者: J Jeff Layton

ecryptfs: convert to file_write_and_wait in ->fsync

This change is mainly for documentation/completeness, as ecryptfs never
calls mapping_set_error, and so will never return a previous writeback
error.
Signed-off-by: NJeff Layton <jlayton@redhat.com>
上级 ffb959bb
...@@ -328,7 +328,7 @@ ecryptfs_fsync(struct file *file, loff_t start, loff_t end, int datasync) ...@@ -328,7 +328,7 @@ ecryptfs_fsync(struct file *file, loff_t start, loff_t end, int datasync)
{ {
int rc; int rc;
rc = filemap_write_and_wait(file->f_mapping); rc = file_write_and_wait(file);
if (rc) if (rc)
return rc; return rc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册