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>
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index bd00df3..211ca32 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -581,7 +581,7 @@
} else {
break;
}
- btrfs_set_key_type(&key, found_type - 1);
+ btrfs_set_key_type(&key, found_type);
continue;
}
if (btrfs_disk_key_offset(found_key) >= inode->i_size)