summaryrefslogtreecommitdiff
path: root/fs/file.c
diff options
context:
space:
mode:
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);