diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-02-18 00:47:45 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:24 -0400 |
commit | 8f9ad91a02c4fd1391ce852cadd9a0227fdd624a (patch) | |
tree | 179397fe5647fc5ea9ada7c5db34809e5e8be433 /fs/bcachefs/btree_types.h | |
parent | bcachefs: Change bch2_dev_lookup() to not use lookup_bdev() (diff) | |
download | linux-8f9ad91a02c4fd1391ce852cadd9a0227fdd624a.tar.gz linux-8f9ad91a02c4fd1391ce852cadd9a0227fdd624a.tar.bz2 linux-8f9ad91a02c4fd1391ce852cadd9a0227fdd624a.zip |
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 <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/btree_types.h')
-rw-r--r-- | fs/bcachefs/btree_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; /* |