]> git.baikalelectronics.ru Git - kernel.git/commit
init: add an init_dup helper
authorChristoph Hellwig <hch@lst.de>
Tue, 28 Jul 2020 15:49:47 +0000 (17:49 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 5 Aug 2020 01:02:38 +0000 (21:02 -0400)
commitabb0ba1e0437f2e9e7e67c450abed1182958d72f
tree064d6a4ec00df1fe854f6266e6e14432126ca2c8
parente00f27c8bad347e0f1f6fef5603ba45f2374c409
init: add an init_dup helper

Add a simple helper to grab a reference to a file and install it at
the next available fd, and switch the early init code over to it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/init.c
include/linux/init_syscalls.h
init/main.c