Re: [PATCH v2] ftrace: Do not over-allocate ftrace memory
From: Steven Rostedt
Date: Tue Jan 06 2026 - 19:52:45 EST
On Tue, 6 Jan 2026 16:24:28 -0800
Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
> if (pg_unuse) {
> - unsigned long pg_remaining, remaining = 0;
> - unsigned long skip;
> -
> - /* Count the number of entries unused and compare it to skipped. */
> - pg_remaining = (ENTRIES_PER_PAGE << pg->order) - pg->index;
> -
The above needs to be fixed though.
-- Steve