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)
On Mon, 17 Sep 2007 19:18:30 +0800 "Yan Zheng" <yanzheng@21cn.com> wrote:> Hello > > found_type has already been decreased by codes above the change, I > think decrease it by one again doesn't make sense. >You're right, this was a copy n' paste error. Thanks. -chris