diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2020-06-25 17:20:53 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-06-26 18:34:27 +0200 |
commit | e883a79d8ced8e123f8c4042a29a7524c39935ab (patch) | |
tree | 35bf0f6803b1000fac82d4790e703563c6cf0c1b /fs/io-wq.h | |
parent | io_uring: use task_work for links if possible (diff) | |
download | linux-e883a79d8ced8e123f8c4042a29a7524c39935ab.tar.xz linux-e883a79d8ced8e123f8c4042a29a7524c39935ab.zip |
io-wq: compact io-wq flags numbers
Renumerate IO_WQ flags, so they take adjacent bits
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.h')
-rw-r--r-- | fs/io-wq.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/io-wq.h b/fs/io-wq.h index 071f1a997800..04239dfb12b0 100644 --- a/fs/io-wq.h +++ b/fs/io-wq.h @@ -5,10 +5,10 @@ struct io_wq; enum { IO_WQ_WORK_CANCEL = 1, - IO_WQ_WORK_HASHED = 4, - IO_WQ_WORK_UNBOUND = 32, - IO_WQ_WORK_NO_CANCEL = 256, - IO_WQ_WORK_CONCURRENT = 512, + IO_WQ_WORK_HASHED = 2, + IO_WQ_WORK_UNBOUND = 4, + IO_WQ_WORK_NO_CANCEL = 8, + IO_WQ_WORK_CONCURRENT = 16, IO_WQ_HASH_SHIFT = 24, /* upper 8 bits are used for hash key */ }; |