Skip to contentSkip to conversation

ecryptfs: convert to file_write_and_wait in ->fsync

PATCH New Jeff Layton 1 participant 1 message Aug 2, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ecryptfs: convert to file_write_and_wait in ->fsync

From: Jeff Layton <[email protected]>

This change is mainly for documentation/completeness, as ecryptfs never calls mapping_set_error, and so will never return a previous writeback error.

---
 fs/ecryptfs/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ecryptfs/file.c +1 -1
index ca4e83750214..c74ed3ca3372 100644
@@ -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;
 
Signature · 1 line
2.13.3