Re: [PATCH 5/5] debugobjects: Delete a piece of redundant code
From: Thomas Gleixner
Date: Tue Sep 03 2024 - 06:14:33 EST
On Mon, Sep 02 2024 at 22:05, Zhen Lei wrote:
> The statically allocated objects are all located in obj_static_pool[],
> no one will use them anymore, the whole memory of obj_static_pool[] will
No one used them ever: nothing will use them
> be reclaimed later. Therefore, there is no need to split the remaining
> statically nodes in list obj_pool into isolated ones. Just write
> INIT_HLIST_HEAD(&obj_pool) is enough. Since hlist_move_list() directly
> discards the old list, even this can be omitted.
Nice!
Thanks,
tglx