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>
This commit is contained in:
Al Viro 2012-08-12 17:18:05 -04:00
parent 56b31d1c9f
commit 1a7bd2265f
2 changed files with 5 additions and 5 deletions

View file

@ -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);