From 3d777cbcaf1269a4e9e47837932f2654b588aa1b Mon Sep 17 00:00:00 2001 From: Josef 'Jeff' Sipek Date: Wed, 4 Jul 2018 11:17:30 -0400 Subject: [PATCH] krtld: fix incorrect comment about cpio archive mount The original plan was to generate an index of all files in the archive on "mount", but it turned out that sequentially scanning the archive for each file open was simpler and fast enough. Obsolete comment spotted by Andy Fiddaman. --- kernel/krtld/bootrd_cpio.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/kernel/krtld/bootrd_cpio.c b/kernel/krtld/bootrd_cpio.c index d23fa2c1cb..4fb79b3d01 100644 --- a/kernel/krtld/bootrd_cpio.c +++ b/kernel/krtld/bootrd_cpio.c @@ -1,5 +1,5 @@ /* - * Copyright 2011-2017 Josef 'Jeff' Sipek + * Copyright 2011-2018 Josef 'Jeff' Sipek * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -42,10 +42,8 @@ struct cpio_hdr { }; /* - * On mount, we parse the whole archive and instantiate a struct cpio_file - * for each. While this may be a bit wasteful, it makes the subsequent - * operations much faster and the code much simpler. The list of all files - * is held by the open_files global. + * This structure represents an open file. The list of all open files is + * rooted in the open_files global. */ struct cpio_file { /* pointers into the archive */ -- 2.11.4.GIT