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

Re: [PATCH v14 072/138] mm/writeback: Add folio_account_cleaned()

From: Matthew Wilcox <willy@infradead.org>
Date: 2021-08-15 10:54:20
Also in: linux-fsdevel, linux-mm

On Thu, Aug 12, 2021 at 06:14:22PM +0200, Vlastimil Babka wrote:
On 7/15/21 5:35 AM, Matthew Wilcox (Oracle) wrote:
quoted
Get the statistics right; compound pages were being accounted as a
single page.  This didn't matter before now as no filesystem which
supported compound pages did writeback.  Also move the declaration
to filemap.h since this is part of the page cache.  Add a wrapper for
Seems to be pagemap.h :)
Ugh, right.  filemap.c.  pagemap.h.  obviously.
quoted
+		wb_stat_mod(wb, WB_RECLAIMABLE, -nr);
+		task_io_account_cancelled_write(folio_size(folio));
In "mm/writeback: Add __folio_mark_dirty()" you used nr*PAGE_SIZE. Consistency?
We don't have any ;-)  I'll change that.  Some places we use <<
PAGE_SHIFT, some places we use * PAGE_SIZE ... either are better than
calling folio_size() unnecessarily.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help