Lines Matching refs:new_fdt
173 struct fdtable *new_fdt, *cur_fdt; in expand_fdtable() local
176 new_fdt = alloc_fdtable(nr); in expand_fdtable()
185 if (!new_fdt) in expand_fdtable()
191 if (unlikely(new_fdt->max_fds <= nr)) { in expand_fdtable()
192 __free_fdtable(new_fdt); in expand_fdtable()
197 copy_fdtable(new_fdt, cur_fdt); in expand_fdtable()
198 rcu_assign_pointer(files->fdt, new_fdt); in expand_fdtable()
321 struct fdtable *old_fdt, *new_fdt; in dup_fd() local
334 new_fdt = &newf->fdtab; in dup_fd()
335 new_fdt->max_fds = NR_OPEN_DEFAULT; in dup_fd()
336 new_fdt->close_on_exec = newf->close_on_exec_init; in dup_fd()
337 new_fdt->open_fds = newf->open_fds_init; in dup_fd()
338 new_fdt->full_fds_bits = newf->full_fds_bits_init; in dup_fd()
339 new_fdt->fd = &newf->fd_array[0]; in dup_fd()
348 while (unlikely(open_files > new_fdt->max_fds)) { in dup_fd()
351 if (new_fdt != &newf->fdtab) in dup_fd()
352 __free_fdtable(new_fdt); in dup_fd()
354 new_fdt = alloc_fdtable(open_files - 1); in dup_fd()
355 if (!new_fdt) { in dup_fd()
361 if (unlikely(new_fdt->max_fds < open_files)) { in dup_fd()
362 __free_fdtable(new_fdt); in dup_fd()
377 copy_fd_bitmaps(new_fdt, old_fdt, open_files); in dup_fd()
380 new_fds = new_fdt->fd; in dup_fd()
393 __clear_open_fd(open_files - i, new_fdt); in dup_fd()
400 memset(new_fds, 0, (new_fdt->max_fds - open_files) * sizeof(struct file *)); in dup_fd()
402 rcu_assign_pointer(newf->fdt, new_fdt); in dup_fd()