[PATCH] files: break up files struct
authorDipankar Sarma <dipankar@in.ibm.com>
Fri, 9 Sep 2005 20:04:10 +0000 (13:04 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 20:57:55 +0000 (13:57 -0700)
commitbadf16621c1f9d1ac753be056fce11b43d6e0be5
tree3fdf833fdf2e3d3a439090743539680449ec3428
parentc0dfb2905126e9e94edebbce8d3e05001301f52d
[PATCH] files: break up files struct

In order for the RCU to work, the file table array, sets and their sizes must
be updated atomically.  Instead of ensuring this through too many memory
barriers, we put the arrays and their sizes in a separate structure.  This
patch takes the first step of putting the file table elements in a separate
structure fdtable that is embedded withing files_struct.  It also changes all
the users to refer to the file table using files_fdtable() macro.  Subsequent
applciation of RCU becomes easier after this.

Signed-off-by: Dipankar Sarma <dipankar@in.ibm.com>
Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
17 files changed:
arch/alpha/kernel/osf_sys.c
arch/ia64/kernel/perfmon.c
arch/sparc64/solaris/ioctl.c
drivers/char/tty_io.c
fs/exec.c
fs/fcntl.c
fs/file.c
fs/locks.c
fs/open.c
fs/proc/array.c
fs/proc/base.c
fs/select.c
include/linux/file.h
include/linux/init_task.h
kernel/exit.c
kernel/fork.c
security/selinux/hooks.c