diff options
author | Jens Axboe <axboe@kernel.dk> | 2021-03-09 09:20:32 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-09 15:14:15 -0600 |
commit | 679b9d5cc7b45c3a135c6cf683a4238bf77e9945 (patch) | |
tree | 2177fe592b1e71f11a375e22badfc7162b947063 | |
parent | 0a87b41f906c681ba0cb23d2733dbaf0316e0e9b (diff) |
fs: add bio alloc cache kiocb flag
We'll be using this to implement a recycling cache for the bio units
used to do IO.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 640574294216..2ac1b01a4902 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -319,6 +319,8 @@ enum rw_hint { /* iocb->ki_waitq is valid */ #define IOCB_WAITQ (1 << 19) #define IOCB_NOIO (1 << 20) +/* bio cache can be used */ +#define IOCB_ALLOC_CACHE (1 << 21) struct kiocb { struct file *ki_filp; |