summaryrefslogtreecommitdiffstats
path: root/fs/file.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-08-12 23:18:05 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2012-09-27 03:08:50 +0200
commit1a7bd2265fc57f29400d57f66275cc5918e30aa6 (patch)
tree48a4bb42dfb5d4b37d077bbaf550253686b546f5 /fs/file.c
parentunexport sock_map_fd(), switch to sock_alloc_file() (diff)
downloadlinux-1a7bd2265fc57f29400d57f66275cc5918e30aa6.tar.xz
linux-1a7bd2265fc57f29400d57f66275cc5918e30aa6.zip
make get_unused_fd_flags() a function
... and get_unused_fd() a macro around it Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/file.c')
-rw-r--r--fs/file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/file.c b/fs/file.c
index ba3f6053025c..5b46e9970a7a 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -477,8 +477,8 @@ out:
return error;
}
-int get_unused_fd(void)
+int get_unused_fd_flags(unsigned flags)
{
- return alloc_fd(0, 0);
+ return alloc_fd(0, flags);
}
-EXPORT_SYMBOL(get_unused_fd);
+EXPORT_SYMBOL(get_unused_fd_flags);