]> git.hungrycats.org Git - linux/commitdiff
[PATCH] remove task_struct.swappable
authorAndrew Morton <akpm@digeo.com>
Mon, 30 Dec 2002 05:40:51 +0000 (21:40 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 30 Dec 2002 05:40:51 +0000 (21:40 -0800)
Remove unused task_struct.swappable.

include/linux/sched.h
kernel/fork.c

index 7c3bbfc255eda17b0d54abe4b51b44e3ad7a0402..9545a195708966ab891caa5058f23f12f45dffc2 100644 (file)
@@ -343,7 +343,6 @@ struct task_struct {
        unsigned long start_time;
 /* mm fault and swap info: this can arguably be seen as either mm-specific or thread-specific */
        unsigned long min_flt, maj_flt, nswap, cmin_flt, cmaj_flt, cnswap;
-       int swappable:1;
 /* process credentials */
        uid_t uid,euid,suid,fsuid;
        gid_t gid,egid,sgid,fsgid;
index 56f12f280dd33576f149d359e3988fdd5a0ec3b8..60d6d54142c64e4cd8645015439efd423573af25 100644 (file)
@@ -757,7 +757,6 @@ static struct task_struct *copy_process(unsigned long clone_flags,
        p->thread_info->preempt_count = 1;
 #endif
        p->did_exec = 0;
-       p->swappable = 0;
        p->state = TASK_UNINTERRUPTIBLE;
 
        copy_flags(clone_flags, p);
@@ -841,7 +840,6 @@ static struct task_struct *copy_process(unsigned long clone_flags,
        p->parent_exec_id = p->self_exec_id;
 
        /* ok, now we should be set up.. */
-       p->swappable = 1;
        if (clone_flags & CLONE_DETACHED)
                p->exit_signal = -1;
        else