summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2017-08-02 10:14:21 -0400
committerJeff Layton <jlayton@redhat.com>2017-08-03 14:20:22 -0400
commit6d4b51241394664fffbf68ea86c96d2699344583 (patch)
tree07020c928222e32efc57ef11dd3e1fa415a8e494
parentffb959bbdf923b4f89a08a04aba2501b1b16d164 (diff)
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>
-rw-r--r--fs/ecryptfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ecryptfs/file.c b/fs/ecryptfs/file.c
index ca4e83750214..c74ed3ca3372 100644
--- a/fs/ecryptfs/file.c
+++ b/fs/ecryptfs/file.c
@@ -328,7 +328,7 @@ ecryptfs_fsync(struct file *file, loff_t start, loff_t end, int datasync)
328{ 328{
329 int rc; 329 int rc;
330 330
331 rc = filemap_write_and_wait(file->f_mapping); 331 rc = file_write_and_wait(file);
332 if (rc) 332 if (rc)
333 return rc; 333 return rc;
334 334