[btrfs-devel][patch]fix for btrfs_truncate_in_trans
Yan Zheng
yanzheng at 21cn.com
Mon Sep 17 04:18:30 PDT 2007
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)
More information about the Btrfs-devel
mailing list