]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
initramfs: switch initramfs unpacking to struct file based APIs
authorChristoph Hellwig <hch@lst.de>
Tue, 14 Jul 2020 06:56:19 +0000 (08:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 10:50:14 +0000 (12:50 +0200)
commit246d6635dc5b326af3ca10212d7339712244ac36
tree6edb66bd3b7128122ec51fdf18b57b9df84c75a9
parentb78a72266577fa7be6d482b3a49d020c1e10e966
initramfs: switch initramfs unpacking to struct file based APIs

[ Upstream commit bf6419e4d5440c6d414a320506c5488857a5b001 ]

There is no good reason to mess with file descriptors from in-kernel
code, switch the initramfs unpacking to struct file based write
instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Stable-dep-of: 4624b346cf67 ("init: open /initrd.image with O_LARGEFILE")
Signed-off-by: Sasha Levin <sashal@kernel.org>
init/initramfs.c