diff options
author | Joel Becker <joel.becker@oracle.com> | 2009-02-12 20:49:26 -0500 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-04 19:07:52 -0400 |
commit | 3d03a305ded8057155bd3c801e64ffef9f534827 (patch) | |
tree | 4f220711f42c1abbd80a9fe8c2b6ee47e846a587 /fs/ocfs2/alloc.h | |
parent | d9a0a1f83bf083b55b3c1f16efddecc31abace61 (diff) |
ocfs2: Pass ocfs2_caching_info to ocfs2_read_extent_block().
extent blocks belong to btrees on more than just inodes, so we want to
pass the ocfs2_caching_info structure directly to
ocfs2_read_extent_block(). A number of places in alloc.c can now drop
struct inode from their argument list.
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/alloc.h')
-rw-r--r-- | fs/ocfs2/alloc.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ocfs2/alloc.h b/fs/ocfs2/alloc.h index 285d40b4b0fb..ed78ee5139bc 100644 --- a/fs/ocfs2/alloc.h +++ b/fs/ocfs2/alloc.h | |||
@@ -86,7 +86,7 @@ void ocfs2_init_dx_root_extent_tree(struct ocfs2_extent_tree *et, | |||
86 | * allocated. This is a cached read. The extent block will be validated | 86 | * allocated. This is a cached read. The extent block will be validated |
87 | * with ocfs2_validate_extent_block(). | 87 | * with ocfs2_validate_extent_block(). |
88 | */ | 88 | */ |
89 | int ocfs2_read_extent_block(struct inode *inode, u64 eb_blkno, | 89 | int ocfs2_read_extent_block(struct ocfs2_caching_info *ci, u64 eb_blkno, |
90 | struct buffer_head **bh); | 90 | struct buffer_head **bh); |
91 | 91 | ||
92 | struct ocfs2_alloc_context; | 92 | struct ocfs2_alloc_context; |
@@ -132,7 +132,6 @@ int ocfs2_remove_btree_range(struct inode *inode, | |||
132 | struct ocfs2_cached_dealloc_ctxt *dealloc); | 132 | struct ocfs2_cached_dealloc_ctxt *dealloc); |
133 | 133 | ||
134 | int ocfs2_num_free_extents(struct ocfs2_super *osb, | 134 | int ocfs2_num_free_extents(struct ocfs2_super *osb, |
135 | struct inode *inode, | ||
136 | struct ocfs2_extent_tree *et); | 135 | struct ocfs2_extent_tree *et); |
137 | 136 | ||
138 | /* | 137 | /* |