mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
kernel: Make io_thread and kthread bit fields
We only set args->io_thread/kthread to 0 or 1 then test if they are set, so make them bit fields. Signed-off-by: Mike Christie <michael.christie@oracle.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
This commit is contained in:
parent
73e0c11659
commit
c81cc5819f
1 changed files with 2 additions and 2 deletions
|
@ -25,6 +25,8 @@ struct kernel_clone_args {
|
|||
int __user *parent_tid;
|
||||
const char *name;
|
||||
int exit_signal;
|
||||
u32 kthread:1;
|
||||
u32 io_thread:1;
|
||||
unsigned long stack;
|
||||
unsigned long stack_size;
|
||||
unsigned long tls;
|
||||
|
@ -32,8 +34,6 @@ struct kernel_clone_args {
|
|||
/* Number of elements in *set_tid */
|
||||
size_t set_tid_size;
|
||||
int cgroup;
|
||||
int io_thread;
|
||||
int kthread;
|
||||
int idle;
|
||||
int (*fn)(void *);
|
||||
void *fn_arg;
|
||||
|
|
Loading…
Reference in a new issue