Re: [PATCH v5 1/2] mm/memblock: Add "reserve_mem" to reserved named memory at boot up
From: Steven Rostedt
Date: Thu Jun 13 2024 - 09:20:23 EST
On Thu, 13 Jun 2024 09:00:31 +0300
Mike Rapoport <rppt@xxxxxxxxxx> wrote:
> > + /* Make sure the name is not already used (size is only updated if found) */
> > + if (reserve_mem_find_by_name(name, &start, &size))
> > + return -EBUSY;
>
> I'd prefer another variable here rather than size. Will be more robust IMO.
It's a damn habit of mine to be frugal on the stack variables. I'll
update in v6.
-- Steve