mm/writeback: Add __folio_mark_dirty()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 4 May 2021 15:01:10 +0000 (11:01 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 18 Oct 2021 11:49:39 +0000 (07:49 -0400)
commit203a31516616111b8eaaf00c16fa3fcaa25e6f81
treeaa6994870d8cfe39715f7a34a21ed697cd2450f4
parentb5e84594cafb934e023ee7d4ea4208b6c6b65fcc
mm/writeback: Add __folio_mark_dirty()

Turn __set_page_dirty() into a wrapper around __folio_mark_dirty().
Convert account_page_dirtied() into folio_account_dirtied() and account
the number of pages in the folio to support multi-page folios.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Howells <dhowells@redhat.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
include/linux/memcontrol.h
include/linux/pagemap.h
mm/page-writeback.c