Btrfs: Off by one fixes in extent_map.c

Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Yan 2007-10-25 15:42:57 -04:00 committed by Chris Mason
parent f578d4bd7e
commit 65555a06b4
2 changed files with 6 additions and 5 deletions

View file

@ -616,6 +616,7 @@ static int btrfs_truncate_in_trans(struct btrfs_trans_handle *trans,
break;
}
btrfs_set_key_type(&key, found_type);
btrfs_release_path(root, path);
continue;
}
if (found_key.offset >= inode->i_size)