aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorYan <yanzheng@21cn.com>2007-10-25 15:42:57 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:57 -0400
commit65555a06b4d1ae116ce223dc4b82d6068b36df96 (patch)
tree5233852538b4bb34337a21f80d5d6af129ce5c53 /fs/btrfs/inode.c
parentf578d4bd7e141dd03ca7e8695c1cc118c326e69e (diff)
Btrfs: Off by one fixes in extent_map.c
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 7efc0470abf1..c07433072322 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -616,6 +616,7 @@ static int btrfs_truncate_in_trans(struct btrfs_trans_handle *trans,
616 break; 616 break;
617 } 617 }
618 btrfs_set_key_type(&key, found_type); 618 btrfs_set_key_type(&key, found_type);
619 btrfs_release_path(root, path);
619 continue; 620 continue;
620 } 621 }
621 if (found_key.offset >= inode->i_size) 622 if (found_key.offset >= inode->i_size)