summaryrefslogtreecommitdiff
path: root/fs/bcachefs/trace.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-08-05 13:06:44 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:41 -0400
commit62448afee714354a26db8a0f3c644f58628f0792 (patch)
tree97c0ead47c4af1dc655906672655d530b1a2a8d6 /fs/bcachefs/trace.h
parent845cffed0d343ecea9f6ff3883cac9a6872d9920 (diff)
downloadlwn-62448afee714354a26db8a0f3c644f58628f0792.tar.gz
lwn-62448afee714354a26db8a0f3c644f58628f0792.zip
bcachefs: Fix bch2_btree_node_upgrade()
Previously, if we were trying to upgrade from a read to an intent lock but we held an additional read lock via another btree_path, bch2_btree_node_upgrade() would always fail, in six_lock_tryupgrade(). This patch factors out the code that __bch2_btree_node_lock_write() uses to temporarily drop extra read locks, so that six_lock_tryupgrade() can succeed. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/trace.h')
0 files changed, 0 insertions, 0 deletions