]> www.infradead.org Git - users/willy/pagecache.git/commit
mm: Add folio_xor_flags_has_waiters()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 18 Jul 2023 19:29:23 +0000 (15:29 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 4 Oct 2023 01:18:59 +0000 (21:18 -0400)
commitc9f0615e35f070a528098b7d9e56b83f45444473
tree75fed2c2ffcdab32f23e743b74218c0e8c8bc650
parent4322a5583d7eb9b2582540e5ea5369f1d6a53df6
mm: Add folio_xor_flags_has_waiters()

Optimise folio_end_read() by setting the uptodate bit at the same time
we clear the unlock bit.  This saves at least one memory barrier and
one write-after-write hazard.

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