]> www.infradead.org Git - users/willy/pagecache.git/commit
mm: Use folio_xor_flags_has_waiters() in folio_end_writeback()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 17 Jul 2023 03:39:45 +0000 (23:39 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 4 Oct 2023 01:18:59 +0000 (21:18 -0400)
commit96881f78b71ad873283fb3895636accaa78eec66
tree078b0d34ecbe815a2e9fb2b90c98800dca6c5c8a
parenteab3a1ed9c35fc498c177bb6092a287bfa30c511
mm: Use folio_xor_flags_has_waiters() in folio_end_writeback()

Match how folio_unlock() works by combining the test for PG_waiters with
the clearing of PG_writeback.  This should have a small performance win,
and removes the last user of folio_wake().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
mm/filemap.c
mm/internal.h
mm/page-writeback.c