Thread (389 messages) 389 messages, 13 authors, 2021-08-21

Re: [PATCH v14 068/138] mm/writeback: Add folio_mark_dirty()

From: Vlastimil Babka <hidden>
Date: 2021-08-12 15:55:16
Also in: linux-mm, lkml

On 7/15/21 5:35 AM, Matthew Wilcox (Oracle) wrote:
Reimplement set_page_dirty() as a wrapper around folio_mark_dirty().
There is no change to filesystems as they were already being called
with the compound_head of the page being marked dirty.  We avoid
several calls to compound_head(), both statically (through
using folio_test_dirty() instead of PageDirty() and dynamically by
calling folio_mapping() instead of page_mapping().

Also return bool instead of int to show the range of values actually
returned, and add kernel-doc.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Vlastimil Babka <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help