]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ifdef ->rchar, ->wchar, ->syscr, ->syscw from task_struct
authorAlexey Dobriyan <adobriyan@gmail.com>
Sat, 10 Feb 2007 09:46:45 +0000 (01:46 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 19:18:07 +0000 (11:18 -0800)
commit25aa528d7b6fc578a2f0bb9956271dd2411e730c
tree616b7260196c9bd0eaf208ef8fab91fcf9efcece
parent173feebf02ba3c255d0df6c91dcf7186a070c0d6
[PATCH] ifdef ->rchar, ->wchar, ->syscr, ->syscw from task_struct

They are fat: 4x8 bytes in task_struct.
They are uncoditionally updated in every fork, read, write and sendfile.
They are used only if you have some "extended acct fields feature".

And please, please, please, read(2) knows about bytes, not characters,
why it is called "rchar"?

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Jay Lan <jlan@engr.sgi.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c
fs/read_write.c
include/linux/sched.h
kernel/fork.c