diff --git a/fs/io-wq.h b/fs/io-wq.h index 7d2fe718f78e6a54ea9960713e991a77bc864594..e5e15f2c93eca47965667fbddfa08b36de5ac3fd 100644 --- a/fs/io-wq.h +++ b/fs/io-wq.h @@ -78,16 +78,10 @@ struct io_wq_work { pid_t task_pid; }; -#define INIT_IO_WORK(work, _func) \ - do { \ - (work)->list.next = NULL; \ - (work)->func = _func; \ - (work)->files = NULL; \ - (work)->mm = NULL; \ - (work)->creds = NULL; \ - (work)->fs = NULL; \ - (work)->flags = 0; \ - } while (0) \ +#define INIT_IO_WORK(work, _func) \ + do { \ + *(work) = (struct io_wq_work){ .func = _func }; \ + } while (0) \ typedef void (get_work_fn)(struct io_wq_work *); typedef void (put_work_fn)(struct io_wq_work *);