diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2023-11-08 20:46:02 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-12-10 16:51:36 -0800 |
| commit | c36f9d3d2c3e17f9eef1d2f47a63c91d51d55e87 (patch) | |
| tree | 57d6dfb92cc9593c00b32230b61e297f55e04ebf /include/linux | |
| parent | 78c3c11268c38c5fb5b58f6be1bb018f3f1c195e (diff) | |
mm: remove test_set_page_writeback()
Patch series "Make folio_start_writeback return void".
Most of the folio flag-setting functions return void.
folio_start_writeback is gratuitously different; the only two filesystems
that do anything with the return value emit debug messages if it's already
set, and we can (and should) do that internally without bothering the
filesystem to do it.
This patch (of 4):
There are no more callers of this wrapper.
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Cc: David Howells <[email protected]>
Cc: Steve French <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/page-flags.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index a88e64acebfe..a440062e9386 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -780,11 +780,6 @@ bool set_page_writeback(struct page *page); #define folio_start_writeback_keepwrite(folio) \ __folio_start_writeback(folio, true) -static inline bool test_set_page_writeback(struct page *page) -{ - return set_page_writeback(page); -} - static __always_inline bool folio_test_head(struct folio *folio) { return test_bit(PG_head, folio_flags(folio, FOLIO_PF_ANY)); |