diff options
author | Tsutomu Itoh <t-itoh@jp.fujitsu.com> | 2011-05-19 05:19:08 +0000 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-05-23 13:24:39 -0400 |
commit | 1cd307990d6e2b4965620e339a92e0d7ae853e13 (patch) | |
tree | cd3cc9c06e2c7bbbeda4d38bbcc00d44bfd98a02 /fs/btrfs/dir-item.c | |
parent | 65a246c5ffe3b487a001de025816326939e63362 (diff) | |
download | kernel_samsung_aries-1cd307990d6e2b4965620e339a92e0d7ae853e13.zip kernel_samsung_aries-1cd307990d6e2b4965620e339a92e0d7ae853e13.tar.gz kernel_samsung_aries-1cd307990d6e2b4965620e339a92e0d7ae853e13.tar.bz2 |
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/dir-item.c')
-rw-r--r-- | fs/btrfs/dir-item.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/dir-item.c b/fs/btrfs/dir-item.c index dec9348..dd421c4 100644 --- a/fs/btrfs/dir-item.c +++ b/fs/btrfs/dir-item.c @@ -50,7 +50,6 @@ static struct btrfs_dir_item *insert_with_overflow(struct btrfs_trans_handle if (di) return ERR_PTR(-EEXIST); ret = btrfs_extend_item(trans, root, path, data_size); - WARN_ON(ret > 0); } if (ret < 0) return ERR_PTR(ret); |