Hello
found_type has already been decreased by codes above the change, I
think decrease it by one again doesn't make sense.
Regards
YZ
diff -r d0921c0349a9 inode.c
--- a/inode.c Fri Sep 14 10:23:29 2007 -0400
+++ b/inode.c Mon Sep 17 18:57:56 2007 +0800
@@ -577,7 +577,7 @@ static int btrfs_truncate_in_trans(struc
} 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)
_______________________________________________
Btrfs-devel mailing list
[email protected]
http://oss.oracle.com/mailman/listinfo/btrfs-devel