No architecture terminates the stack trace with ULONG_MAX anymore. Remove
the cruft.

Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: [email protected]
Cc: Mike Rapoport <[email protected]>
Cc: Andrew Morton <[email protected]>
---
 mm/page_owner.c |    3 ---
 1 file changed, 3 deletions(-)

--- a/mm/page_owner.c
+++ b/mm/page_owner.c
@@ -148,9 +148,6 @@ static noinline depot_stack_handle_t sav
        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


Reply via email to