Lines Matching refs:max_fds
67 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable()
69 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()
70 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
74 cpy = ofdt->max_fds / BITS_PER_BYTE; in copy_fdtable()
75 set = (nfdt->max_fds - ofdt->max_fds) / BITS_PER_BYTE; in copy_fdtable()
111 fdt->max_fds = nr; in alloc_fdtable()
157 if (unlikely(new_fdt->max_fds <= nr)) { in expand_fdtable()
166 if (nr >= cur_fdt->max_fds) { in expand_fdtable()
194 if (nr < fdt->max_fds) in expand_files()
227 int size = fdt->max_fds; in count_open_files()
261 new_fdt->max_fds = NR_OPEN_DEFAULT; in dup_fd()
273 while (unlikely(open_files > new_fdt->max_fds)) { in dup_fd()
286 if (unlikely(new_fdt->max_fds < open_files)) { in dup_fd()
326 size = (new_fdt->max_fds - open_files) * sizeof(struct file *); in dup_fd()
331 if (new_fdt->max_fds > open_files) { in dup_fd()
332 int left = (new_fdt->max_fds - open_files) / 8; in dup_fd()
362 if (i >= fdt->max_fds) in close_files()
434 .max_fds = NR_OPEN_DEFAULT,
459 if (fd < fdt->max_fds) in __alloc_fd()
460 fd = find_next_zero_bit(fdt->open_fds, fdt->max_fds, fd); in __alloc_fd()
580 if (fd >= fdt->max_fds) in __close_fd()
607 if (fd >= fdt->max_fds) in do_close_on_exec()
902 for (fdt = files_fdtable(files); n < fdt->max_fds; n++) { in iterate_fd()