Explorar o código

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>
Jeff Layton %!s(int64=8) %!d(string=hai) anos
pai
achega
6d4b512413
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      fs/ecryptfs/file.c

+ 1 - 1
fs/ecryptfs/file.c

@@ -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;