Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d4b5124 authored by Jeff Layton's avatar Jeff Layton
Browse files

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: default avatarJeff Layton <jlayton@redhat.com>
parent ffb959bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;