Lines Matching refs:newf
294 struct files_struct *newf; in dup_fd() local
300 newf = kmem_cache_alloc(files_cachep, GFP_KERNEL); in dup_fd()
301 if (!newf) in dup_fd()
304 atomic_set(&newf->count, 1); in dup_fd()
306 spin_lock_init(&newf->file_lock); in dup_fd()
307 newf->next_fd = 0; in dup_fd()
308 new_fdt = &newf->fdtab; in dup_fd()
310 new_fdt->close_on_exec = newf->close_on_exec_init; in dup_fd()
311 new_fdt->open_fds = newf->open_fds_init; in dup_fd()
312 new_fdt->fd = &newf->fd_array[0]; in dup_fd()
325 if (new_fdt != &newf->fdtab) in dup_fd()
388 rcu_assign_pointer(newf->fdt, new_fdt); in dup_fd()
390 return newf; in dup_fd()
393 kmem_cache_free(files_cachep, newf); in dup_fd()