]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't BUG() during drop snapshot
authorJosef Bacik <jbacik@fb.com>
Fri, 23 Sep 2016 11:23:28 +0000 (13:23 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2016 17:37:06 +0000 (19:37 +0200)
commitcca5a1e0aa7274d1d03e4acab53256fe70b29a21
treee0237d6308ff83ad8dde872e0f3f4eedbe5b6952
parenteb72c7949369536750d480b6e359f3d5678e63cc
Btrfs: don't BUG() during drop snapshot

Really there's lots of things that can go wrong here, kill all the
BUG_ON()'s and replace the logic ones with ASSERT()'s and return EIO
instead.

Signed-off-by: Josef Bacik <jbacik@fb.com>
[ switched to btrfs_err, errors go to common label ]
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c