diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2023-11-08 21:46:05 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-11 01:51:37 +0100 |
commit | b5612c368648a7be52411b288d09593e5945d1aa (patch) | |
tree | 3efbdb5d169e402367fb753b6f20eec1a9fafcce /mm/folio-compat.c | |
parent | smb: do not test the return value of folio_start_writeback() (diff) | |
download | linux-b5612c368648a7be52411b288d09593e5945d1aa.tar.xz linux-b5612c368648a7be52411b288d09593e5945d1aa.zip |
mm: return void from folio_start_writeback() and related functions
Nobody now checks the return value from any of these functions, so
add an assertion at the beginning of the function and return void.
Link: https://lkml.kernel.org/r/20231108204605.745109-5-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Steve French <sfrench@samba.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/folio-compat.c')
-rw-r--r-- | mm/folio-compat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/folio-compat.c b/mm/folio-compat.c index 10c3247542cb..aee3b9a16828 100644 --- a/mm/folio-compat.c +++ b/mm/folio-compat.c @@ -46,9 +46,9 @@ void mark_page_accessed(struct page *page) } EXPORT_SYMBOL(mark_page_accessed); -bool set_page_writeback(struct page *page) +void set_page_writeback(struct page *page) { - return folio_start_writeback(page_folio(page)); + folio_start_writeback(page_folio(page)); } EXPORT_SYMBOL(set_page_writeback); |