]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
file: Merge __alloc_fd into alloc_fd
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 20 Nov 2020 23:14:37 +0000 (17:14 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jun 2024 12:52:49 +0000 (14:52 +0200)
commit7458c5ae465ef8f052e5bb5a7c4755e9c755d752
tree06567c2010ece9655314d5d0ba5bf3ff481ddb8e
parent9e8ef54ca890eda6f1993405684a68cc8dff06e7
file: Merge __alloc_fd into alloc_fd

[ Upstream commit aa384d10f3d06d4b85597ff5df41551262220e16 ]

The function __alloc_fd was added to support binder[1].  With binder
fixed[2] there are no more users.

As alloc_fd just calls __alloc_fd with "files=current->files",
merge them together by transforming the files parameter into a
local variable initialized to current->files.

[1] dcfadfa4ec5a ("new helper: __alloc_fd()")
[2] 44d8047f1d87 ("binder: use standard functions to allocate fds")
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
v1: https://lkml.kernel.org/r/20200817220425.9389-16-ebiederm@xmission.com
Link: https://lkml.kernel.org/r/20201120231441.29911-20-ebiederm@xmission.com
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/file.c
include/linux/fdtable.h