diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2020-06-25 18:20:54 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-06-26 19:34:27 +0300 |
commit | f4db7182e0de981a3f1b356e0cf43c6815423055 (patch) | |
tree | 430392eeccf52b8be23b84d722080e9782aa3109 /fs/io-wq.h | |
parent | e883a79d8ced8e123f8c4042a29a7524c39935ab (diff) | |
download | linux-f4db7182e0de981a3f1b356e0cf43c6815423055.tar.xz |
io-wq: return next work from ->do_work() directly
It's easier to return next work from ->do_work() than
having an in-out argument. Looks nicer and easier to compile.
Also, merge io_wq_assign_next() into its only user.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/io-wq.h b/fs/io-wq.h index 04239dfb12b0..114f12ec2d65 100644 --- a/fs/io-wq.h +++ b/fs/io-wq.h @@ -101,7 +101,7 @@ static inline struct io_wq_work *wq_next_work(struct io_wq_work *work) } typedef void (free_work_fn)(struct io_wq_work *); -typedef void (io_wq_work_fn)(struct io_wq_work **); +typedef struct io_wq_work *(io_wq_work_fn)(struct io_wq_work *); struct io_wq_data { struct user_struct *user; |