Lines Matching refs:new_fdt
256 struct fdtable *new_fdt, *cur_fdt; in expand_fdtable() local
259 new_fdt = alloc_fdtable(nr + 1); in expand_fdtable()
268 if (IS_ERR(new_fdt)) in expand_fdtable()
269 return PTR_ERR(new_fdt); in expand_fdtable()
272 copy_fdtable(new_fdt, cur_fdt); in expand_fdtable()
273 rcu_assign_pointer(files->fdt, new_fdt); in expand_fdtable()
443 struct fdtable *old_fdt, *new_fdt; in dup_fd() local
455 new_fdt = &newf->fdtab; in dup_fd()
456 new_fdt->max_fds = NR_OPEN_DEFAULT; in dup_fd()
457 new_fdt->close_on_exec = newf->close_on_exec_init; in dup_fd()
458 new_fdt->open_fds = newf->open_fds_init; in dup_fd()
459 new_fdt->full_fds_bits = newf->full_fds_bits_init; in dup_fd()
460 new_fdt->fd = &newf->fd_array[0]; in dup_fd()
469 while (unlikely(open_files > new_fdt->max_fds)) { in dup_fd()
472 if (new_fdt != &newf->fdtab) in dup_fd()
473 __free_fdtable(new_fdt); in dup_fd()
475 new_fdt = alloc_fdtable(open_files); in dup_fd()
476 if (IS_ERR(new_fdt)) { in dup_fd()
478 return ERR_CAST(new_fdt); in dup_fd()
491 copy_fd_bitmaps(new_fdt, old_fdt, open_files / BITS_PER_LONG); in dup_fd()
494 new_fds = new_fdt->fd; in dup_fd()
520 __clear_open_fd(fd, new_fdt); in dup_fd()
527 memset(new_fds, 0, (new_fdt->max_fds - open_files) * sizeof(struct file *)); in dup_fd()
529 rcu_assign_pointer(newf->fdt, new_fdt); in dup_fd()