Skip to content

Commit

Permalink
ecryptfs: convert to file_write_and_wait in ->fsync
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff Layton committed Aug 3, 2017
1 parent ffb959b commit 6d4b512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ecryptfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6d4b512

Please sign in to comment.