diff options
author | Dave Chinner <dchinner@redhat.com> | 2012-06-22 04:50:14 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-07-01 15:50:07 -0400 |
commit | 1d9025e56143c0c4aebebdb62e46618d3d284218 (patch) | |
tree | c31b34008dbd17ac1811c73cc515ea7f6247e2f0 /fs/xfs/xfs_attr_leaf.h | |
parent | 3605431fb9739a30ccd0c6380ae8e3c6f8e670a5 (diff) |
xfs: remove struct xfs_dabuf and infrastructure
The struct xfs_dabuf now only tracks a single xfs_buf and all the
information it holds can be gained directly from the xfs_buf. Hence
we can remove the struct dabuf and pass the xfs_buf around
everywhere.
Kill the struct dabuf and the associated infrastructure.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_attr_leaf.h')
-rw-r--r-- | fs/xfs/xfs_attr_leaf.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/fs/xfs/xfs_attr_leaf.h b/fs/xfs/xfs_attr_leaf.h index 9c7d22fdcf4d..dea17722945e 100644 --- a/fs/xfs/xfs_attr_leaf.h +++ b/fs/xfs/xfs_attr_leaf.h | |||
@@ -31,7 +31,6 @@ | |||
31 | struct attrlist; | 31 | struct attrlist; |
32 | struct attrlist_cursor_kern; | 32 | struct attrlist_cursor_kern; |
33 | struct xfs_attr_list_context; | 33 | struct xfs_attr_list_context; |
34 | struct xfs_dabuf; | ||
35 | struct xfs_da_args; | 34 | struct xfs_da_args; |
36 | struct xfs_da_state; | 35 | struct xfs_da_state; |
37 | struct xfs_da_state_blk; | 36 | struct xfs_da_state_blk; |
@@ -215,7 +214,7 @@ int xfs_attr_shortform_getvalue(struct xfs_da_args *args); | |||
215 | int xfs_attr_shortform_to_leaf(struct xfs_da_args *args); | 214 | int xfs_attr_shortform_to_leaf(struct xfs_da_args *args); |
216 | int xfs_attr_shortform_remove(struct xfs_da_args *args); | 215 | int xfs_attr_shortform_remove(struct xfs_da_args *args); |
217 | int xfs_attr_shortform_list(struct xfs_attr_list_context *context); | 216 | int xfs_attr_shortform_list(struct xfs_attr_list_context *context); |
218 | int xfs_attr_shortform_allfit(struct xfs_dabuf *bp, struct xfs_inode *dp); | 217 | int xfs_attr_shortform_allfit(struct xfs_buf *bp, struct xfs_inode *dp); |
219 | int xfs_attr_shortform_bytesfit(xfs_inode_t *dp, int bytes); | 218 | int xfs_attr_shortform_bytesfit(xfs_inode_t *dp, int bytes); |
220 | 219 | ||
221 | 220 | ||
@@ -223,7 +222,7 @@ int xfs_attr_shortform_bytesfit(xfs_inode_t *dp, int bytes); | |||
223 | * Internal routines when attribute fork size == XFS_LBSIZE(mp). | 222 | * Internal routines when attribute fork size == XFS_LBSIZE(mp). |
224 | */ | 223 | */ |
225 | int xfs_attr_leaf_to_node(struct xfs_da_args *args); | 224 | int xfs_attr_leaf_to_node(struct xfs_da_args *args); |
226 | int xfs_attr_leaf_to_shortform(struct xfs_dabuf *bp, | 225 | int xfs_attr_leaf_to_shortform(struct xfs_buf *bp, |
227 | struct xfs_da_args *args, int forkoff); | 226 | struct xfs_da_args *args, int forkoff); |
228 | int xfs_attr_leaf_clearflag(struct xfs_da_args *args); | 227 | int xfs_attr_leaf_clearflag(struct xfs_da_args *args); |
229 | int xfs_attr_leaf_setflag(struct xfs_da_args *args); | 228 | int xfs_attr_leaf_setflag(struct xfs_da_args *args); |
@@ -235,14 +234,14 @@ int xfs_attr_leaf_flipflags(xfs_da_args_t *args); | |||
235 | int xfs_attr_leaf_split(struct xfs_da_state *state, | 234 | int xfs_attr_leaf_split(struct xfs_da_state *state, |
236 | struct xfs_da_state_blk *oldblk, | 235 | struct xfs_da_state_blk *oldblk, |
237 | struct xfs_da_state_blk *newblk); | 236 | struct xfs_da_state_blk *newblk); |
238 | int xfs_attr_leaf_lookup_int(struct xfs_dabuf *leaf, | 237 | int xfs_attr_leaf_lookup_int(struct xfs_buf *leaf, |
239 | struct xfs_da_args *args); | 238 | struct xfs_da_args *args); |
240 | int xfs_attr_leaf_getvalue(struct xfs_dabuf *bp, struct xfs_da_args *args); | 239 | int xfs_attr_leaf_getvalue(struct xfs_buf *bp, struct xfs_da_args *args); |
241 | int xfs_attr_leaf_add(struct xfs_dabuf *leaf_buffer, | 240 | int xfs_attr_leaf_add(struct xfs_buf *leaf_buffer, |
242 | struct xfs_da_args *args); | 241 | struct xfs_da_args *args); |
243 | int xfs_attr_leaf_remove(struct xfs_dabuf *leaf_buffer, | 242 | int xfs_attr_leaf_remove(struct xfs_buf *leaf_buffer, |
244 | struct xfs_da_args *args); | 243 | struct xfs_da_args *args); |
245 | int xfs_attr_leaf_list_int(struct xfs_dabuf *bp, | 244 | int xfs_attr_leaf_list_int(struct xfs_buf *bp, |
246 | struct xfs_attr_list_context *context); | 245 | struct xfs_attr_list_context *context); |
247 | 246 | ||
248 | /* | 247 | /* |
@@ -257,9 +256,9 @@ int xfs_attr_root_inactive(struct xfs_trans **trans, struct xfs_inode *dp); | |||
257 | /* | 256 | /* |
258 | * Utility routines. | 257 | * Utility routines. |
259 | */ | 258 | */ |
260 | xfs_dahash_t xfs_attr_leaf_lasthash(struct xfs_dabuf *bp, int *count); | 259 | xfs_dahash_t xfs_attr_leaf_lasthash(struct xfs_buf *bp, int *count); |
261 | int xfs_attr_leaf_order(struct xfs_dabuf *leaf1_bp, | 260 | int xfs_attr_leaf_order(struct xfs_buf *leaf1_bp, |
262 | struct xfs_dabuf *leaf2_bp); | 261 | struct xfs_buf *leaf2_bp); |
263 | int xfs_attr_leaf_newentsize(int namelen, int valuelen, int blocksize, | 262 | int xfs_attr_leaf_newentsize(int namelen, int valuelen, int blocksize, |
264 | int *local); | 263 | int *local); |
265 | #endif /* __XFS_ATTR_LEAF_H__ */ | 264 | #endif /* __XFS_ATTR_LEAF_H__ */ |