]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/filemap: unify dropbehind flag testing and clearing
authorJens Axboe <axboe@kernel.dk>
Tue, 27 May 2025 13:28:56 +0000 (07:28 -0600)
committerChristian Brauner <brauner@kernel.org>
Tue, 27 May 2025 19:06:24 +0000 (21:06 +0200)
commita1d98e4ffb972ab007f5de850ef53c2a46cacf15
tree8f8859d612b8fda307882b6b2488919c4e1d7871
parent1da7a06d9ce4edea3370945af8bfcc71b7744788
mm/filemap: unify dropbehind flag testing and clearing

The read and write side does this a bit differently, unify it such that
the _{read,write} helpers check the bit before locking, and the generic
handler is in charge of clearing the bit and invalidating, once under
the folio lock.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/20250527133255.452431-6-axboe@kernel.dk
Signed-off-by: Christian Brauner <brauner@kernel.org>
mm/filemap.c