Messages in this thread Patch in this message | | | Date | Thu, 28 Apr 2005 22:17:02 +0200 | From | David Serrano <> | Subject | [PATCH] Tiny reordering of some fields of task_struct |
| |
(First post & first patch so please be kind O:))
Playing with some things (I'm just beginning with this whole kernel stuff) I found that there are three filesystem-related members in task_struct that aren't together:
/* file system info */ int link_count, total_link_count; /* ipc stuff */ struct sysv_sem sysvsem; /* CPU-specific state of this task */ struct thread_struct thread; /* filesystem information */ struct fs_struct *fs;
[...]
/* journalling filesystem info */ void *journal_info;
Perhaps there is some reason to have them as they are now but if that's not the case, this joins them together. It's against 2.6.12-rc3.
Signed-off-by: David Serrano <dserrano5@gmail.com>
--- linux-2.6.12-rc3/include/linux/sched.h.orig 2005-04-28 22:05:05.000000000 +0200 +++ linux-2.6.12-rc3/include/linux/sched.h 2005-04-28 22:05:07.000000000 +0200 @@ -616,14 +616,14 @@ struct task_struct { #endif int oomkilladj; /* OOM kill score adjustment (bit shift). */ char comm[TASK_COMM_LEN]; -/* file system info */ +/* filesystem information */ int link_count, total_link_count; + struct fs_struct *fs; + void *journal_info; /* ipc stuff */ struct sysv_sem sysvsem; /* CPU-specific state of this task */ struct thread_struct thread; -/* filesystem information */ - struct fs_struct *fs; /* open file information */ struct files_struct *files; /* namespace */ @@ -654,9 +654,6 @@ struct task_struct { /* context-switch lock */ spinlock_t switch_lock; -/* journalling filesystem info */ - void *journal_info; - /* VM state */ struct reclaim_state *reclaim_state;
-- David Serrano - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |