]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: convert BUG_ON(EXTENT_BIT_LOCKED) checks to ASSERT's
authorJosef Bacik <josef@toxicpanda.com>
Fri, 9 Sep 2022 21:53:22 +0000 (17:53 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:28:03 +0000 (12:28 +0200)
commit91142084585b35f792b5d9240afd424091761965
tree6303e9ba2d71c3ffe697fca891a933340afaede7
parentb890ea0b71fcac145dda14639341e2714d9bfa6a
btrfs: convert BUG_ON(EXTENT_BIT_LOCKED) checks to ASSERT's

We only call these functions from the qgroup code which doesn't call
with EXTENT_BIT_LOCKED.  These are BUG_ON()'s that exist to keep us
developers from using these functions with EXTENT_BIT_LOCKED, so convert
them to ASSERT()'s.

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_io.c