btrfs: change BUG_ON to assertion in tree_move_down()
authorDavid Sterba <dsterba@suse.com>
Tue, 6 Feb 2024 22:06:46 +0000 (23:06 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Mar 2024 15:24:51 +0000 (16:24 +0100)
commit56f335e043ae73c32dbb70ba95488845dc0f1e6e
treec8da762747e980e8deb4d067a9e48b7821f50b6d
parent3c6ee34c6f9cd12802326da26631232a61743501
btrfs: change BUG_ON to assertion in tree_move_down()

There's only one caller of tree_move_down() that does not pass level 0
so the assertion is better suited here.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/send.c