diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-05-03 23:30:44 -0400 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-10-18 07:49:39 -0400 |
commit | 85d4d2ebc86f02740c5f5f72ec43cc47d3560720 (patch) | |
tree | 1728447a3f37ad4f8669ffaf4346f9e43e41ccde /include | |
parent | b9b0ff61eef51469eae962b80bae094ce2c8c2a5 (diff) | |
download | linux-stable-85d4d2ebc86f02740c5f5f72ec43cc47d3560720.tar.gz linux-stable-85d4d2ebc86f02740c5f5f72ec43cc47d3560720.tar.bz2 linux-stable-85d4d2ebc86f02740c5f5f72ec43cc47d3560720.zip |
mm/writeback: Add filemap_dirty_folio()
Reimplement __set_page_dirty_nobuffers() as a wrapper around
filemap_dirty_folio(). Eventually folio_mark_dirty() will pass
the folio's mapping to the address space's ->dirty_folio()
operation, so add the parameter to filemap_dirty_folio() now.
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/writeback.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/writeback.h b/include/linux/writeback.h index d1f65adf6a26..d4f24eba066f 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h @@ -393,6 +393,7 @@ void writeback_set_ratelimit(void); void tag_pages_for_writeback(struct address_space *mapping, pgoff_t start, pgoff_t end); +bool filemap_dirty_folio(struct address_space *mapping, struct folio *folio); void account_page_redirty(struct page *page); void sb_mark_inode_writeback(struct inode *inode); |