diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-08-21 09:56:33 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-09-26 21:09:56 -0400 |
commit | 6a6d27de340c89c5323565b49f7851362619925d (patch) | |
tree | b9b4ab23b43bd330584521917c9b2855c4a4e0cd /include | |
parent | 723a1d77431b0c568730ffac4dd0bcbbd3400031 (diff) |
take close-on-exec logics to fs/file.c, clean it up a bit
... and add cond_resched() there, while we are at it. We can
get large latencies as is...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fdtable.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fdtable.h b/include/linux/fdtable.h index 59488f2392bc..ef4b2137e6bc 100644 --- a/include/linux/fdtable.h +++ b/include/linux/fdtable.h | |||
@@ -118,6 +118,7 @@ void put_files_struct(struct files_struct *fs); | |||
118 | void reset_files_struct(struct files_struct *); | 118 | void reset_files_struct(struct files_struct *); |
119 | int unshare_files(struct files_struct **); | 119 | int unshare_files(struct files_struct **); |
120 | struct files_struct *dup_fd(struct files_struct *, int *); | 120 | struct files_struct *dup_fd(struct files_struct *, int *); |
121 | void do_close_on_exec(struct files_struct *); | ||
121 | 122 | ||
122 | extern int __alloc_fd(struct files_struct *files, | 123 | extern int __alloc_fd(struct files_struct *files, |
123 | unsigned start, unsigned end, unsigned flags); | 124 | unsigned start, unsigned end, unsigned flags); |