Btrfs: cleanup some BUG_ON()
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Wed, 23 Mar 2011 08:14:16 +0000 (08:14 +0000)
committerroot <Chris Mason chris.mason@oracle.com>
Mon, 28 Mar 2011 09:37:35 +0000 (05:37 -0400)
commitdb5b493ac78e46c7b6bad22cd25d8041564cd8ea
tree18f484c3d8194b80165e5400831931a3ac5c58ba
parent1abe9b8a138c9988ba8f7bfded6453649a31541f
Btrfs: cleanup some BUG_ON()

This patch changes some BUG_ON() to the error return.
(but, most callers still use BUG_ON())

Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/file-item.c
fs/btrfs/inode-map.c
fs/btrfs/ioctl.c
fs/btrfs/root-tree.c
fs/btrfs/transaction.c
fs/btrfs/tree-log.c