From: Jeff Layton Date: Wed, 2 Aug 2017 14:14:21 +0000 (-0400) Subject: ecryptfs: convert to file_write_and_wait in ->fsync X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6d4b51241394664fffbf68ea86c96d2699344583;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/fs/ecryptfs/file.c b/fs/ecryptfs/file.c index ca4e83750214..c74ed3ca3372 100644 --- a/fs/ecryptfs/file.c +++ b/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;