Fall back to F_SET_RW_HINT if F_SET_FILE_RW_HINT is not supported
authorBart Van Assche <bvanassche@acm.org>
Thu, 7 Dec 2023 18:22:19 +0000 (10:22 -0800)
committerBart Van Assche <bvanassche@acm.org>
Thu, 7 Dec 2023 19:10:59 +0000 (11:10 -0800)
commit0cfea592fedf0011e695a604a6961e9cbc1fe9b6
tree13b4fabc9e079ae6176a4a9ab6140d27daeb6a06
parentbdf99b6836d75683cba5968c40f321748482ae86
Fall back to F_SET_RW_HINT if F_SET_FILE_RW_HINT is not supported

Linux kernel commit 7b12e49669c9 ("fs: remove fs.f_write_hint") removed
F_SET_FILE_RW_HINT support from the Linux kernel. Hence fall back to
F_SET_RW_HINT if F_SET_FILE_RW_HINT is not supported.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
ioengines.c