fio: add support for POSIX_FADV_NOREUSE
authorYuanchu Xie <yuanchu@google.com>
Fri, 31 Mar 2023 18:37:02 +0000 (11:37 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 31 Mar 2023 18:39:19 +0000 (12:39 -0600)
commiteb314e7072a056b13c28bcb785f51b35c67fd1e6
tree4379d7a2faff3be3fffc4186e72da4c931c05891
parentd86ac3e9f4c703b7d7c9add96e69f2d02affdc65
fio: add support for POSIX_FADV_NOREUSE

As of Linux kernel commit 17e810229cb3 ("mm: support
POSIX_FADV_NOREUSE"), POSIX_FADV_NOREUSE hints at the LRU algorithm to
ignore accesses to mapped files with this flag. Previously, it was a
no-op.

Add it in fio as an fadvise_hint option to test the new behavior.

Signed-off-by: Yuanchu Xie <yuanchu@google.com>
Link: https://lore.kernel.org/r/20230331183703.3145788-1-yuanchu@google.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fio.h
ioengines.c
options.c