bcachefs: fix bch2_save_backtrace()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 25 Feb 2024 20:45:34 +0000 (15:45 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 25 Feb 2024 20:45:36 +0000 (15:45 -0500)
Missed a call in the previous fix.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/util.c

index 231003b405efc304a4cefa61a6e4e2f30b4b9466..3a32faa86b5c4a2eee98de32951c18dc73052041 100644 (file)
@@ -289,7 +289,7 @@ int bch2_save_backtrace(bch_stacktrace *stack, struct task_struct *task, unsigne
        do {
                nr_entries = stack_trace_save_tsk(task, stack->data, stack->size, skipnr + 1);
        } while (nr_entries == stack->size &&
-                !(ret = darray_make_room(stack, stack->size * 2)));
+                !(ret = darray_make_room_gfp(stack, stack->size * 2, gfp)));
 
        stack->nr = nr_entries;
        up_read(&task->signal->exec_update_lock);