diff options
author | Yan <yanzheng@21cn.com> | 2007-09-17 11:08:38 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:56 -0400 |
commit | a61721d5b771d1735415a6b4c75409ab1fc9c845 (patch) | |
tree | b1a339abc93a2d678f00a4a6e16504778e0be5a3 /fs/btrfs/inode.c | |
parent | cf67582bb2ec364d71b3e4f8e49de98d8c3c832e (diff) |
fix found_type decrement in btrfs_truncate_in_trans
found_type has already been decreased by codes above the change, I
think decrease it by one again doesn't make sense.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index bd00df33fb3f..211ca32c65c5 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -581,7 +581,7 @@ static int btrfs_truncate_in_trans(struct btrfs_trans_handle *trans, | |||
581 | } else { | 581 | } else { |
582 | break; | 582 | break; |
583 | } | 583 | } |
584 | btrfs_set_key_type(&key, found_type - 1); | 584 | btrfs_set_key_type(&key, found_type); |
585 | continue; | 585 | continue; |
586 | } | 586 | } |
587 | if (btrfs_disk_key_offset(found_key) >= inode->i_size) | 587 | if (btrfs_disk_key_offset(found_key) >= inode->i_size) |