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 | b888db2bd7b67f190b32934e6a86181f262ac3ec (patch) | |
tree | 7eb4472c65b6a634db6be689eedca09f09a40cd5 /fs/btrfs/extent_map.h | |
parent | a52d9a8033c454cd9b4697cfafb467509fc1693f (diff) |
Btrfs: Add delayed allocation to the extent based page tree code
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_map.h')
-rw-r--r-- | fs/btrfs/extent_map.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/extent_map.h b/fs/btrfs/extent_map.h index 108944aab4bd..e91a2e9619ee 100644 --- a/fs/btrfs/extent_map.h +++ b/fs/btrfs/extent_map.h | |||
@@ -11,6 +11,7 @@ struct extent_map_tree { | |||
11 | struct rb_root state; | 11 | struct rb_root state; |
12 | struct address_space *mapping; | 12 | struct address_space *mapping; |
13 | rwlock_t lock; | 13 | rwlock_t lock; |
14 | int (*fill_delalloc)(struct inode *inode, u64 start, u64 end); | ||
14 | }; | 15 | }; |
15 | 16 | ||
16 | /* note, this must start with the same fields as fs/extent_map.c:tree_entry */ | 17 | /* note, this must start with the same fields as fs/extent_map.c:tree_entry */ |
@@ -74,6 +75,8 @@ int set_extent_new(struct extent_map_tree *tree, u64 start, u64 end, | |||
74 | gfp_t mask); | 75 | gfp_t mask); |
75 | int set_extent_dirty(struct extent_map_tree *tree, u64 start, u64 end, | 76 | int set_extent_dirty(struct extent_map_tree *tree, u64 start, u64 end, |
76 | gfp_t mask); | 77 | gfp_t mask); |
78 | int set_extent_delalloc(struct extent_map_tree *tree, u64 start, u64 end, | ||
79 | gfp_t mask); | ||
77 | int extent_invalidatepage(struct extent_map_tree *tree, | 80 | int extent_invalidatepage(struct extent_map_tree *tree, |
78 | struct page *page, unsigned long offset); | 81 | struct page *page, unsigned long offset); |
79 | int extent_write_full_page(struct extent_map_tree *tree, struct page *page, | 82 | int extent_write_full_page(struct extent_map_tree *tree, struct page *page, |