Skip to content

Commit 6d4b512

Browse files
committed
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 <[email protected]>
1 parent ffb959b commit 6d4b512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ecryptfs/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ ecryptfs_fsync(struct file *file, loff_t start, loff_t end, int datasync)
328328
{
329329
int rc;
330330

331-
rc = filemap_write_and_wait(file->f_mapping);
331+
rc = file_write_and_wait(file);
332332
if (rc)
333333
return rc;
334334

0 commit comments

Comments
 (0)