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: Jeff Layton <jlayton@redhat.com>
This commit is contained in:
Jeff Layton 2017-08-02 10:14:21 -04:00
parent ffb959bbdf
commit 6d4b512413
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ ecryptfs_fsync(struct file *file, loff_t start, loff_t end, int datasync)
{
int rc;
rc = filemap_write_and_wait(file->f_mapping);
rc = file_write_and_wait(file);
if (rc)
return rc;