mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
mm/writeback: Add folio_redirty_for_writepage()
Reimplement redirty_page_for_writepage() as a wrapper around folio_redirty_for_writepage(). Account the number of pages in the folio, add kernel-doc and move the prototype to writeback.h. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: David Howells <dhowells@redhat.com> Acked-by: Vlastimil Babka <vbabka@suse.cz>
This commit is contained in:
@@ -399,6 +399,8 @@ static inline void account_page_redirty(struct page *page)
|
||||
{
|
||||
folio_account_redirty(page_folio(page));
|
||||
}
|
||||
bool folio_redirty_for_writepage(struct writeback_control *, struct folio *);
|
||||
bool redirty_page_for_writepage(struct writeback_control *, struct page *);
|
||||
|
||||
void sb_mark_inode_writeback(struct inode *inode);
|
||||
void sb_clear_inode_writeback(struct inode *inode);
|
||||
|
||||
Reference in New Issue
Block a user