Re: [PATCH 12/23] initrd: switch initrd loading to struct file based APIs

2020-07-26 Thread Al Viro
On Tue, Jul 14, 2020 at 09:04:16PM +0200, Christoph Hellwig wrote: > static int __init > -identify_ramdisk_image(int fd, int start_block, decompress_fn *decompressor) > +identify_ramdisk_image(struct file *file, int start_block, > + decompress_fn *decompressor) > { > - ksys_

[PATCH 12/23] initrd: switch initrd loading to struct file based APIs

2020-07-14 Thread Christoph Hellwig
There is no good reason to mess with file descriptors from in-kernel code, switch the initrd loading to struct file based read and writes instead. Signed-off-by: Christoph Hellwig --- fs/read_write.c | 2 +- include/linux/syscalls.h | 1 - init/do_mounts_rd.c | 82 +++