Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1702260 > unrolled thread

[PATCH] ecryptfs: convert to file_write_and_wait in ->fsync

Started byJeff Layton <jlayton@kernel.org>
First post2017-08-02 18:40 +0200
Last post2017-08-02 18:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] ecryptfs: convert to file_write_and_wait in ->fsync Jeff Layton <jlayton@kernel.org> - 2017-08-02 18:40 +0200

#1702260 — [PATCH] ecryptfs: convert to file_write_and_wait in ->fsync

FromJeff Layton <jlayton@kernel.org>
Date2017-08-02 18:40 +0200
Subject[PATCH] ecryptfs: convert to file_write_and_wait in ->fsync
Message-ID<ua4QG-3PO-17@gated-at.bofh.it>
From: Jeff Layton <jlayton@redhat.com>

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>
---
 fs/ecryptfs/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web