From 8f9ad91a02c4fd1391ce852cadd9a0227fdd624a Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Fri, 18 Feb 2022 00:47:45 -0500 Subject: bcachefs: Fix failure to allocate btree node in cache The error code when we fail to allocate a node in the btree node cache doesn't make it to bch2_btree_path_traverse_all(). Instead, we need to stash a flag in btree_trans so we know we have to take the cannibalize lock. Signed-off-by: Kent Overstreet --- fs/bcachefs/btree_types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'fs/bcachefs/btree_types.h') diff --git a/fs/bcachefs/btree_types.h b/fs/bcachefs/btree_types.h index 7e5b70f60444..89c0d2272d91 100644 --- a/fs/bcachefs/btree_types.h +++ b/fs/bcachefs/btree_types.h @@ -393,6 +393,7 @@ struct btree_trans { bool in_traverse_all:1; bool restarted:1; bool paths_sorted:1; + bool memory_allocation_failure:1; bool journal_transaction_names:1; bool journal_replay_not_finished:1; /* -- cgit v1.2.3