diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-01-22 16:47:59 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:59 -0400 |
commit | 5f56406aabdf5444d040c5955effc665b1d0dbaf (patch) | |
tree | 59c82cc7f5d5de3b65b6eba24b505684eb7941d6 /fs/btrfs/ctree.h | |
parent | c1e32da616a17813f11b701a7a87775d35c12e3a (diff) |
Btrfs: Fix hole insertion corner cases
There were a few places that could cause duplicate extent insertion,
this adjusts the code that creates holes to avoid it.
lookup_extent_map is changed to correctly return all of the extents in a
range, even when there are none matching at the start of the range.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 7a588ba2b74..b9f2975b55c 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -1170,6 +1170,7 @@ int btrfs_update_inode(struct btrfs_trans_handle *trans, | |||
1170 | struct inode *inode); | 1170 | struct inode *inode); |
1171 | /* file.c */ | 1171 | /* file.c */ |
1172 | int btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end); | 1172 | int btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end); |
1173 | int btrfs_check_file(struct btrfs_root *root, struct inode *inode); | ||
1173 | extern struct file_operations btrfs_file_operations; | 1174 | extern struct file_operations btrfs_file_operations; |
1174 | int btrfs_drop_extents(struct btrfs_trans_handle *trans, | 1175 | int btrfs_drop_extents(struct btrfs_trans_handle *trans, |
1175 | struct btrfs_root *root, struct inode *inode, | 1176 | struct btrfs_root *root, struct inode *inode, |