if ((err = expand_fdset(files, nr))) goto out; } if (nr >= fdt->max_fds) { expand = 1; if ((err = expand_fd_array(files, nr)))
if ((err = expand_fdtable(files, nr)))
int expand_files(struct files_struct *files, int nr){	int err, expand = 0;	struct fdtable *fdt;	fdt = files_fdtable(files);	if (nr >= fdt->max_fdset) {		expand = 1;		if ((err = expand_fdset(files, nr)))			goto out;	}	if (nr >= fdt->max_fds) {		expand = 1;		if ((err = expand_fd_array(files, nr)))			goto out;	}	err = expand;out:	return err;}