diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2020-02-28 10:36:39 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-03-02 14:06:31 -0700 |
commit | 3684f24653534c71c7dc9f44d7281a838f4e4979 (patch) | |
tree | ce46b123606ee438bf6c00ea9ed7b2a59eff7ad2 /fs/io-wq.c | |
parent | 5eae8619907a1389dbd1b4a1049caf52782c0916 (diff) | |
download | linux-rpi-3684f24653534c71c7dc9f44d7281a838f4e4979.tar.gz linux-rpi-3684f24653534c71c7dc9f44d7281a838f4e4979.tar.bz2 linux-rpi-3684f24653534c71c7dc9f44d7281a838f4e4979.zip |
io-wq: use BIT for ulong hash
@hash_map is unsigned long, but BIT_ULL() is used for manipulations.
BIT() is a better match as it returns exactly unsigned long value.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.c')
-rw-r--r-- | fs/io-wq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/io-wq.c b/fs/io-wq.c index a1a42ead3b5a..042c7e2057ef 100644 --- a/fs/io-wq.c +++ b/fs/io-wq.c @@ -393,8 +393,8 @@ static struct io_wq_work *io_get_next_work(struct io_wqe *wqe, unsigned *hash) /* hashed, can run if not already running */ *hash = work->flags >> IO_WQ_HASH_SHIFT; - if (!(wqe->hash_map & BIT_ULL(*hash))) { - wqe->hash_map |= BIT_ULL(*hash); + if (!(wqe->hash_map & BIT(*hash))) { + wqe->hash_map |= BIT(*hash); wq_node_del(&wqe->work_list, node, prev); return work; } @@ -512,7 +512,7 @@ next: spin_lock_irq(&wqe->lock); if (hash != -1U) { - wqe->hash_map &= ~BIT_ULL(hash); + wqe->hash_map &= ~BIT(hash); wqe->flags &= ~IO_WQE_FLAG_STALLED; } if (work && work != old_work) { |