]> www.infradead.org Git - users/jedix/linux-maple.git/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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 06:07:20 +0000 (23:07 -0700)
commitb41c8c9b6e403e8baa5f7cc192b20319ee147b4b
treec7bd1d619c0d775896ecc0e704aa92c3cfdde1c5
parentef1ab072aa5aa8c937704c3bb6eaad18c125cbb1
Btrfs: don't BUG_ON() in btrfs_orphan_add

Orabug: 25975316

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)
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
fs/btrfs/inode.c