mm/writeback: Add folio_redirty_for_writepage()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 3 May 2021 03:22:52 +0000 (23:22 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 18 Oct 2021 11:49:40 +0000 (07:49 -0400)
commitcd78ab11a8810dd297f4751d17cc53e3dce36024
treed7a52434d892e64a425ce381ca5f426e82f92c9b
parent25ff8b15537dfa0e1a62d55cfcc48f3c8bd8a76c
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>
fs/jfs/jfs_metapage.c
include/linux/mm.h
include/linux/writeback.h
mm/folio-compat.c
mm/page-writeback.c