]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bcachefs: Fix for bch2_btree_node_get_noiter() returning -ENOMEM
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 24 Feb 2021 02:41:25 +0000 (21:41 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:53 +0000 (17:08 -0400)
commit18a7b97239b6f0bae3fa1475cb276a273e07597a
treeebd4bf1d4108683e7e8fe09b89134e3315db1d61
parentdab9ef0d271648c24b867059855439ec48775fc4
bcachefs: Fix for bch2_btree_node_get_noiter() returning -ENOMEM

bch2_btree_node_get_noiter() isn't used from the btree iterator code,
which retries with the btree node cache cannibalize lock held on
-ENOMEM, so we should do it ourself if necessary.

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