summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Christie <michael.christie@oracle.com>2023-03-10 16:03:25 -0600
committerChristian Brauner (Microsoft) <brauner@kernel.org>2023-03-12 10:54:42 +0100
commitc81cc5819faf5dd77124f5086aa654482281ac37 (patch)
treea6bf2b07a69f7ea882360c26a766a5642ea20fc8 /include
parent73e0c116594d99f807754b15e474690635a87249 (diff)
downloadlinux-stable-c81cc5819faf5dd77124f5086aa654482281ac37.tar.gz
linux-stable-c81cc5819faf5dd77124f5086aa654482281ac37.tar.bz2
linux-stable-c81cc5819faf5dd77124f5086aa654482281ac37.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched/task.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sched/task.h b/include/linux/sched/task.h
index 32c9f01af0a6..268c77a42155 100644
--- a/include/linux/sched/task.h
+++ b/include/linux/sched/task.h
@@ -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;