mm/filemap: unify dropbehind flag testing and clearing
authorJens Axboe <axboe@kernel.dk>
Tue, 27 May 2025 13:15:17 +0000 (07:15 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 27 May 2025 13:18:51 +0000 (07:18 -0600)
commit570175af81244d3eac781e5c4e65f1c6a2801e84
tree9ce7d2987cb4a52fc5100157d1ed279ad2325977
parent4e36f87551ed6ab100b6699271c4dec6089a3682
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>
mm/filemap.c