From: Yan Date: Mon, 17 Sep 2007 15:08:38 +0000 (-0400) Subject: fix found_type decrement in btrfs_truncate_in_trans X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a61721d5b771d1735415a6b4c75409ab1fc9c845;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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, } 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)