aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>2011-05-19 01:19:08 -0400
committerChris Mason <chris.mason@oracle.com>2011-05-23 13:24:39 -0400
commit1cd307990d6e2b4965620e339a92e0d7ae853e13 (patch)
treecd3cc9c06e2c7bbbeda4d38bbcc00d44bfd98a02 /fs/btrfs/inode.c
parent65a246c5ffe3b487a001de025816326939e63362 (diff)
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>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 72650ceb9829..e9e2b4778279 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -3428,7 +3428,6 @@ search_again:
3428 btrfs_file_extent_calc_inline_size(size); 3428 btrfs_file_extent_calc_inline_size(size);
3429 ret = btrfs_truncate_item(trans, root, path, 3429 ret = btrfs_truncate_item(trans, root, path,
3430 size, 1); 3430 size, 1);
3431 BUG_ON(ret);
3432 } else if (root->ref_cows) { 3431 } else if (root->ref_cows) {
3433 inode_sub_bytes(inode, item_end + 1 - 3432 inode_sub_bytes(inode, item_end + 1 -
3434 found_key.offset); 3433 found_key.offset);