diff options
author | Joel Becker <joel.becker@oracle.com> | 2008-12-09 17:24:33 -0500 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-01-05 11:40:32 -0500 |
commit | 2a50a743bdaab104155bd9e988d2ba3bb4177263 (patch) | |
tree | a330bfffe09dfca4340075bd9c44f632a3284469 /fs/ocfs2/alloc.h | |
parent | 4d0e214ee83185fcaa2cb97cd026d32bdc5c994a (diff) |
ocfs2: Create ocfs2_xattr_value_buf.
When an ocfs2 extended attribute is large enough to require its own
allocation tree, we root it with an ocfs2_xattr_value_root. However,
these roots can be a part of inodes, xattr blocks, or xattr buckets.
Thus, they need a different journal access function for each container.
We wrap the bh, its journal access function, and the value root (xv) in
a structure called ocfs2_xattr_valu_buf. This is a package that can
be passed around. In this first pass, we simply pass it to the
extent tree code.
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/alloc.h')
-rw-r--r-- | fs/ocfs2/alloc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/alloc.h b/fs/ocfs2/alloc.h index 4b6fea22748a..cceff5c37f47 100644 --- a/fs/ocfs2/alloc.h +++ b/fs/ocfs2/alloc.h | |||
@@ -71,10 +71,10 @@ void ocfs2_init_dinode_extent_tree(struct ocfs2_extent_tree *et, | |||
71 | void ocfs2_init_xattr_tree_extent_tree(struct ocfs2_extent_tree *et, | 71 | void ocfs2_init_xattr_tree_extent_tree(struct ocfs2_extent_tree *et, |
72 | struct inode *inode, | 72 | struct inode *inode, |
73 | struct buffer_head *bh); | 73 | struct buffer_head *bh); |
74 | struct ocfs2_xattr_value_buf; | ||
74 | void ocfs2_init_xattr_value_extent_tree(struct ocfs2_extent_tree *et, | 75 | void ocfs2_init_xattr_value_extent_tree(struct ocfs2_extent_tree *et, |
75 | struct inode *inode, | 76 | struct inode *inode, |
76 | struct buffer_head *bh, | 77 | struct ocfs2_xattr_value_buf *vb); |
77 | struct ocfs2_xattr_value_root *xv); | ||
78 | 78 | ||
79 | /* | 79 | /* |
80 | * Read an extent block into *bh. If *bh is NULL, a bh will be | 80 | * Read an extent block into *bh. If *bh is NULL, a bh will be |