]> git.hungrycats.org Git - linux/commit
Btrfs: don't BUG_ON() in btrfs_orphan_add
authorJosef Bacik <jbacik@fb.com>
Fri, 27 May 2016 17:03:04 +0000 (13:03 -0400)
committerZygo Blaxell <zblaxell@thirteen.furryterror.org>
Sat, 18 Jun 2016 13:36:20 +0000 (09:36 -0400)
commit62329d766a25509f8373d288c0833081c991b572
tree817b344e92b2d368c25a314cbcd01e178629f212
parentc0cfbe7c3c88cddf80cf255a8cd84e3571e36e8f
Btrfs: don't BUG_ON() in btrfs_orphan_add

This is just a screwup for developers, so change it to an ASSERT() so developers
notice when things go wrong and deal with the error appropriately if ASSERT()
isn't enabled.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: Mark Fasheh <mfasheh@suse.de>
Signed-off-by: David Sterba <dsterba@suse.com>
(cherry picked from commit 3b6571c180da85e43550c608e954ab7b2a31d954)
fs/btrfs/inode.c