Re: [PATCH 10/21] earlycpio.c: Fix the confusing comment of find_cpio_data().

2013-07-23 Thread Tang Chen
On 07/24/2013 04:02 AM, Tejun Heo wrote: On Fri, Jul 19, 2013 at 03:59:23PM +0800, Tang Chen wrote: - * @offset: When a matching file is found, this is the offset to the - * beginning of the cpio. It can be used to iterate through - * the cpio to find all files inside of a dire

Re: [PATCH 10/21] earlycpio.c: Fix the confusing comment of find_cpio_data().

2013-07-23 Thread Tejun Heo
On Fri, Jul 19, 2013 at 03:59:23PM +0800, Tang Chen wrote: > - * @offset: When a matching file is found, this is the offset to the > - * beginning of the cpio. It can be used to iterate through > - * the cpio to find all files inside of a directory path > + * @offset: When a match

[PATCH 10/21] earlycpio.c: Fix the confusing comment of find_cpio_data().

2013-07-19 Thread Tang Chen
The comments of find_cpio_data() says: * @offset: When a matching file is found, this is the offset to the * beginning of the cpio. .. But according to the code, dptr = PTR_ALIGN(p + ch[C_NAMESIZE], 4); nptr = PTR_ALIGN(dptr + ch[C_FILESIZE], 4); *offset = (long)npt