mm: add support for dropping pages after writeback
authorJens Axboe <axboe@kernel.dk>
Wed, 6 Nov 2024 16:55:22 +0000 (09:55 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Nov 2024 20:49:42 +0000 (13:49 -0700)
commitb2aee712839f701a86e4bb43a01addf0f0e4a64d
treebc9b0c80f8208f7c89525dcfa1f0f2a8664e6d93
parente64d411549384455c29920f7f190ca6dc341d7ba
mm: add support for dropping pages after writeback

Add a 'drop_writeback' folio flag, which if set, will drop the pages
when writeback completes on this folio. Intended to be used with
RWF_UNCACHED, to avoid needing sync writes for uncached IO.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/page-flags.h
include/trace/events/mmflags.h
mm/filemap.c