From: Thomas Gleixner Date: Wed, 10 Apr 2019 10:28:06 +0000 (+0200) Subject: mm/page_owner: Remove the ULONG_MAX stack trace hackery X-Git-Tag: v5.15~6507^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4621c9858f05ab08434221e3a15cc8098645ef2a;p=platform%2Fkernel%2Flinux-starfive.git mm/page_owner: Remove the ULONG_MAX stack trace hackery No architecture terminates the stack trace with ULONG_MAX anymore. Remove the cruft. Signed-off-by: Thomas Gleixner Acked-by: Peter Zijlstra (Intel) Cc: Josh Poimboeuf Cc: Andy Lutomirski Cc: Steven Rostedt Cc: Alexander Potapenko Cc: Michal Hocko Cc: linux-mm@kvack.org Cc: Mike Rapoport Cc: Andrew Morton Link: https://lkml.kernel.org/r/20190410103644.661974663@linutronix.de --- diff --git a/mm/page_owner.c b/mm/page_owner.c index 925b6f4..df277e6 100644 --- a/mm/page_owner.c +++ b/mm/page_owner.c @@ -148,9 +148,6 @@ static noinline depot_stack_handle_t save_stack(gfp_t flags) depot_stack_handle_t handle; save_stack_trace(&trace); - if (trace.nr_entries != 0 && - trace.entries[trace.nr_entries-1] == ULONG_MAX) - trace.nr_entries--; /* * We need to check recursion here because our request to stackdepot