On Thu, Apr 25, 2019 at 08:55:53AM +0800, Qu Wenruo wrote: > We have a user reporting BUG_ON() triggered in > btrfs_set_item_key_safe(). > > Let's dump the leaf content before triggering BUG_ON() so that we can > have some clue on what's going wrong. > The output of tree locks should help us to debug such problem. > > Reviewed-by: Filip Manana <fdmanana@xxxxxxxx> > Signed-off-by: Qu Wenruo <wqu@xxxxxxxx> > --- > Changelog: > v2: > - Dump slot/old key/new key. > v3: > - Output message update, to avoid "on-disk" wording. > - Use BUG() to replace BUG_ON(1) to make clang quite. Name fixed and I've added a sample stacktrace that I had in the logs. Patch added to misc-next, thanks.
