mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-13 09:28:44 -04:00
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>
This commit is contained in:
committed by
Andrew Morton
parent
a9540e3562
commit
b5612c3686
@@ -772,8 +772,8 @@ static __always_inline void SetPageUptodate(struct page *page)
|
||||
|
||||
CLEARPAGEFLAG(Uptodate, uptodate, PF_NO_TAIL)
|
||||
|
||||
bool __folio_start_writeback(struct folio *folio, bool keep_write);
|
||||
bool set_page_writeback(struct page *page);
|
||||
void __folio_start_writeback(struct folio *folio, bool keep_write);
|
||||
void set_page_writeback(struct page *page);
|
||||
|
||||
#define folio_start_writeback(folio) \
|
||||
__folio_start_writeback(folio, false)
|
||||
|
||||
Reference in New Issue
Block a user