diff options
author | Anton Altaparmakov <aia21@cantab.net> | 2006-03-23 12:06:08 -0500 |
---|---|---|
committer | Anton Altaparmakov <aia21@cantab.net> | 2006-03-23 12:06:08 -0500 |
commit | 92fe7b9ea8ef101bff3c75ade89b93b5f62a7955 (patch) | |
tree | 3dba4faa78f1bbe4be503275173e3a63b5d60f22 /kernel/fork.c | |
parent | e750d1c7cc314b9ba1934b0b474b7d39f906f865 (diff) | |
parent | b0e6e962992b76580f4900b166a337bad7c1e81b (diff) |
Merge branch 'master' of /usr/src/ntfs-2.6/
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 9bd7b65ee418..c79ae0b19a49 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -607,12 +607,12 @@ static struct files_struct *alloc_files(void) | |||
607 | atomic_set(&newf->count, 1); | 607 | atomic_set(&newf->count, 1); |
608 | 608 | ||
609 | spin_lock_init(&newf->file_lock); | 609 | spin_lock_init(&newf->file_lock); |
610 | newf->next_fd = 0; | ||
610 | fdt = &newf->fdtab; | 611 | fdt = &newf->fdtab; |
611 | fdt->next_fd = 0; | ||
612 | fdt->max_fds = NR_OPEN_DEFAULT; | 612 | fdt->max_fds = NR_OPEN_DEFAULT; |
613 | fdt->max_fdset = __FD_SETSIZE; | 613 | fdt->max_fdset = EMBEDDED_FD_SET_SIZE; |
614 | fdt->close_on_exec = &newf->close_on_exec_init; | 614 | fdt->close_on_exec = (fd_set *)&newf->close_on_exec_init; |
615 | fdt->open_fds = &newf->open_fds_init; | 615 | fdt->open_fds = (fd_set *)&newf->open_fds_init; |
616 | fdt->fd = &newf->fd_array[0]; | 616 | fdt->fd = &newf->fd_array[0]; |
617 | INIT_RCU_HEAD(&fdt->rcu); | 617 | INIT_RCU_HEAD(&fdt->rcu); |
618 | fdt->free_files = NULL; | 618 | fdt->free_files = NULL; |