Btrfs: BUG_ON is deleted from the caller of btrfs_truncate_item & btrfs_extend_item
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Thu, 19 May 2011 05:19:08 +0000 (05:19 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 23 May 2011 17:24:39 +0000 (13:24 -0400)
commit1cd307990d6e2b4965620e339a92e0d7ae853e13
treecd3cc9c06e2c7bbbeda4d38bbcc00d44bfd98a02
parent65a246c5ffe3b487a001de025816326939e63362
Btrfs: BUG_ON is deleted from the caller of btrfs_truncate_item & btrfs_extend_item

Currently, btrfs_truncate_item and btrfs_extend_item returns only 0.
So, the check by BUG_ON in the caller is unnecessary.

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/dir-item.c
fs/btrfs/extent-tree.c
fs/btrfs/file-item.c
fs/btrfs/inode-item.c
fs/btrfs/inode.c
fs/btrfs/tree-log.c