Re: [PATCH 1/5] RISC-V: Move free_initrd_mem() to kernel/setup.c

From: Anup Patel
Date: Sat Jan 19 2019 - 05:34:58 EST


On Tue, Jan 15, 2019 at 7:13 PM Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
>
> On Mon, Jan 07, 2019 at 09:40:43PM +0530, Anup Patel wrote:
> > From: Anup Patel <anup.patel@xxxxxxx>
> >
> > We move free_initrd_mem() to kernel/setup.c so that all initrd
> > related functions are in one place.
> >
> > Signed-off-by: Anup Patel <anup.patel@xxxxxxx>
>
> Looks fine:
>
> Reviewed-by: Christoph Hellwig <hch@xxxxxx>
>
> Talking about free_initrd_mem - don't we need to call free_reserved_area
> to actually release the memory?

Yes, we should. Thanks for pointing.

I will include separate patch for it.

Thanks,
Anup