On Wed, Oct 20, 2021 at 06:08:42PM -0700, akpm@xxxxxxxxxxxxxxxxxxxx wrote: > From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> > Subject: restore-acct_reclaim_writeback-for-folio > > Make Mel's "mm/vmscan: throttle reclaim and compaction when too may pages > are isolated" work for folio changes. Mmm. acct_reclaim_writeback() is going to need to be converted to folios -- it accounts a page as a single page instead of as however many pages it contains. This patch makes sense to apply, so this is just a note that there's a fuller fixup to come later. > Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx> > Cc: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> > Cc: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> > Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> > --- > > mm/filemap.c | 1 + > 1 file changed, 1 insertion(+) > > --- a/mm/filemap.c~restore-acct_reclaim_writeback-for-folio > +++ a/mm/filemap.c > @@ -1600,6 +1600,7 @@ void folio_end_writeback(struct folio *f > > smp_mb__after_atomic(); > folio_wake(folio, PG_writeback); > + acct_reclaim_writeback(folio_page(folio, 0)); > folio_put(folio); > } > EXPORT_SYMBOL(folio_end_writeback); > _ > > Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are > > kasan-test-use-underlying-string-helpers-checkpatch-fixes.patch > mm.patch > memcg-kmem-further-deprecate-kmemlimit_in_bytes-checkpatch-fixes.patch > mm-vmalloc-introduce-alloc_pages_bulk_array_mempolicy-to-accelerate-memory-allocation-fix.patch > mm-vmalloc-introduce-alloc_pages_bulk_array_mempolicy-to-accelerate-memory-allocation-fix-2.patch > mm-mempolicy-convert-from-atomic_t-to-refcount_t-on-mempolicy-refcnt-fix.patch > procfs-do-not-list-tid-0-in-proc-pid-task-fix.patch > ipc-check-checkpoint_restore_ns_capable-to-modify-c-r-proc-files-fix.patch > revert-acct_reclaim_writeback-for-next.patch > linux-next-rejects.patch > restore-acct_reclaim_writeback-for-folio.patch > mm-filemap-check-if-thp-has-hwpoisoned-subpage-for-pmd-page-fault-vs-folios.patch > kernel-forkc-export-kernel_thread-to-modules.patch >