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>


Author Christoph Hellwig Committer Al Viro Date Commit Parent 235e5793
+17 -4
3 changed files
+17 -4
3 changed files