]> www.infradead.org Git - nvme.git/commit
btrfs: replace BUG_ON with ASSERT in walk_down_proc()
authorJosef Bacik <josef@toxicpanda.com>
Tue, 7 May 2024 18:12:12 +0000 (14:12 -0400)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:25 +0000 (15:33 +0200)
commit1f9d44c0a12730a24f8bb75c5e1102207413cc9b
tree5ef15ff8f22f4c65b93dc4e6813000788e70b3b6
parentb4236703eb50d03db867ce080823f43c18257d80
btrfs: replace BUG_ON with ASSERT in walk_down_proc()

We have a couple of areas where we check to make sure the tree block is
locked before looking up or messing with references.  This is old code
so it has this as BUG_ON().  Convert this to ASSERT() for developers.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c