diff options
Diffstat (limited to 'fs/file.c')
-rw-r--r-- | fs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -257,7 +257,7 @@ int expand_files(struct files_struct *files, int nr) | |||
257 | * N.B. For clone tasks sharing a files structure, this test | 257 | * N.B. For clone tasks sharing a files structure, this test |
258 | * will limit the total number of files that can be opened. | 258 | * will limit the total number of files that can be opened. |
259 | */ | 259 | */ |
260 | if (nr >= current->signal->rlim[RLIMIT_NOFILE].rlim_cur) | 260 | if (nr >= rlimit(RLIMIT_NOFILE)) |
261 | return -EMFILE; | 261 | return -EMFILE; |
262 | 262 | ||
263 | /* Do we need to expand? */ | 263 | /* Do we need to expand? */ |