]> git.baikalelectronics.ru Git - kernel.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)
committerDavid Sterba <dsterba@suse.com>
Fri, 17 Jun 2016 16:32:40 +0000 (18:32 +0200)
commit6d0d0dfc1ff725578d1ece4a120a3e8b8fbf4824
tree8304cce6ef150c2913254a24453bf842af1e78b0
parent9a278a9e6e80c61b25a161462ada5e1345545cae
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>
fs/btrfs/inode.c