diff options
author | Jeff Layton <jlayton@redhat.com> | 2017-07-05 15:26:48 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2017-07-05 18:44:22 -0400 |
commit | 2b69c8280c8b29cdeb78b8e92e20ed35f730d319 (patch) | |
tree | c45006b6d5b6ac0a5743b164bfa61b06491b4c53 /fs/exofs/dir.c | |
parent | c86daad2c25bfd4a33d48b7691afaa96d9c5ab46 (diff) |
mm: drop "wait" parameter from write_one_page()
The callers all set it to 1.
Also, make it clear that this function will not set any sort of AS_*
error, and that the caller must do so if necessary. No existing caller
uses this on normal files, so none of them need it.
Also, add __must_check here since, in general, the callers need to handle
an error here in some fashion.
Link: http://lkml.kernel.org/r/20170525103303.6524-1-jlayton@redhat.com
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Matthew Wilcox <mawilcox@microsoft.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/exofs/dir.c')
-rw-r--r-- | fs/exofs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exofs/dir.c b/fs/exofs/dir.c index 8eeb694332fe..98233a97b7b8 100644 --- a/fs/exofs/dir.c +++ b/fs/exofs/dir.c | |||
@@ -72,7 +72,7 @@ static int exofs_commit_chunk(struct page *page, loff_t pos, unsigned len) | |||
72 | set_page_dirty(page); | 72 | set_page_dirty(page); |
73 | 73 | ||
74 | if (IS_DIRSYNC(dir)) | 74 | if (IS_DIRSYNC(dir)) |
75 | err = write_one_page(page, 1); | 75 | err = write_one_page(page); |
76 | else | 76 | else |
77 | unlock_page(page); | 77 | unlock_page(page); |
78 | 78 | ||