]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ecryptfs: convert to file_write_and_wait in ->fsync
authorJeff Layton <jlayton@redhat.com>
Wed, 2 Aug 2017 14:14:21 +0000 (10:14 -0400)
committerJeff Layton <jlayton@redhat.com>
Thu, 3 Aug 2017 18:20:22 +0000 (14:20 -0400)
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>
fs/ecryptfs/file.c

index ca4e83750214adc2b0ea77358937c167d02d6ba7..c74ed3ca3372f8b8e91ed9da35de617c7b25ce08 100644 (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;