Skip to contentSkip to conversation

mm/page-flags: remove folio_start_writeback_keepwrite()

PATCH Applied Joanne Koong 3 participants 3 messages Jul 22, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/page-flags: remove folio_start_writeback_keepwrite()

Commit cd57b77197a4 ("ext4: Convert ext4_bio_write_page() to use a folio) removed set_page_writeback_keepwrite() which was the last/only caller of folio_start_writeback_keepwrite().

---
 include/linux/page-flags.h | 2 --
 1 file changed, 2 deletions(-)
include/linux/page-flags.h +0 -2
index 8e4d6eda8a8d..8d3fa3a91ce4 100644
@@ -837,8 +837,6 @@ void set_page_writeback(struct page *page);
 
 #define folio_start_writeback(folio)			\
 	__folio_start_writeback(folio, false)
-#define folio_start_writeback_keepwrite(folio)	\
-	__folio_start_writeback(folio, true)
 
 static __always_inline bool folio_test_head(const struct folio *folio)
 {
Signature · 1 line
2.47.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Joanne Koong

Commit cd57b77197a4 ("ext4: Convert ext4_bio_write_page() to use a folio) removed set_page_writeback_keepwrite() which was the last/only caller of folio_start_writeback_keepwrite().

Yes, it did. Unfortunately, it doesn't remove the 'keep_towrite' boolean argument, but I guess we can remove this now-unused wrapper.