diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-08-27 16:49:44 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-08-27 16:49:44 -0400 |
commit | a52d9a8033c454cd9b4697cfafb467509fc1693f (patch) | |
tree | 83d8bbf2df29598ea9c60498fadf5990262a11c8 /fs/btrfs/ctree.h | |
parent | 83df7c1d8b885e216c68c3f0469bec9b93666b74 (diff) |
Btrfs: Extent based page cache code. This uses an rbtree of extents and tests
instead of buffer heads.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index c7f5161271d3..947f061ed118 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -1176,7 +1176,14 @@ int btrfs_commit_write(struct file *file, struct page *page, | |||
1176 | unsigned from, unsigned to); | 1176 | unsigned from, unsigned to); |
1177 | int btrfs_get_block(struct inode *inode, sector_t iblock, | 1177 | int btrfs_get_block(struct inode *inode, sector_t iblock, |
1178 | struct buffer_head *result, int create); | 1178 | struct buffer_head *result, int create); |
1179 | struct extent_map *btrfs_get_extent(struct inode *inode, struct page *page, | ||
1180 | size_t page_offset, u64 start, u64 end, | ||
1181 | int create); | ||
1182 | int btrfs_update_inode(struct btrfs_trans_handle *trans, | ||
1183 | struct btrfs_root *root, | ||
1184 | struct inode *inode); | ||
1179 | /* file.c */ | 1185 | /* file.c */ |
1186 | int btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end); | ||
1180 | extern struct file_operations btrfs_file_operations; | 1187 | extern struct file_operations btrfs_file_operations; |
1181 | int btrfs_drop_extents(struct btrfs_trans_handle *trans, | 1188 | int btrfs_drop_extents(struct btrfs_trans_handle *trans, |
1182 | struct btrfs_root *root, struct inode *inode, | 1189 | struct btrfs_root *root, struct inode *inode, |