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 /include/linux/mm.h | |
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 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 7cb17c6b97de..ca9c8b27cecb 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -2199,7 +2199,7 @@ extern void filemap_map_pages(struct vm_fault *vmf, | |||
2199 | extern int filemap_page_mkwrite(struct vm_fault *vmf); | 2199 | extern int filemap_page_mkwrite(struct vm_fault *vmf); |
2200 | 2200 | ||
2201 | /* mm/page-writeback.c */ | 2201 | /* mm/page-writeback.c */ |
2202 | int write_one_page(struct page *page, int wait); | 2202 | int __must_check write_one_page(struct page *page); |
2203 | void task_dirty_inc(struct task_struct *tsk); | 2203 | void task_dirty_inc(struct task_struct *tsk); |
2204 | 2204 | ||
2205 | /* readahead.c */ | 2205 | /* readahead.c */ |