diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-08-21 20:11:34 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-09-26 21:09:58 -0400 |
commit | ad47bd7252bf402fe7dba92f5240b5ed16832ae7 (patch) | |
tree | 1d55eb5934e66b18f7fb7205a9626678975c577a /fs/file.c | |
parent | b8318b01a8f7f760ae3ecae052ccc7fc123d9508 (diff) |
make expand_files() and alloc_fd() static
no callers outside of fs/file.c left
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/file.c')
-rw-r--r-- | fs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -238,7 +238,7 @@ static int expand_fdtable(struct files_struct *files, int nr) | |||
238 | * expanded and execution may have blocked. | 238 | * expanded and execution may have blocked. |
239 | * The files->file_lock should be held on entry, and will be held on exit. | 239 | * The files->file_lock should be held on entry, and will be held on exit. |
240 | */ | 240 | */ |
241 | int expand_files(struct files_struct *files, int nr) | 241 | static int expand_files(struct files_struct *files, int nr) |
242 | { | 242 | { |
243 | struct fdtable *fdt; | 243 | struct fdtable *fdt; |
244 | 244 | ||
@@ -580,7 +580,7 @@ out: | |||
580 | return error; | 580 | return error; |
581 | } | 581 | } |
582 | 582 | ||
583 | int alloc_fd(unsigned start, unsigned flags) | 583 | static int alloc_fd(unsigned start, unsigned flags) |
584 | { | 584 | { |
585 | return __alloc_fd(current->files, start, rlimit(RLIMIT_NOFILE), flags); | 585 | return __alloc_fd(current->files, start, rlimit(RLIMIT_NOFILE), flags); |
586 | } | 586 | } |