aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_attr_leaf.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2012-06-22 04:50:14 -0400
committerBen Myers <bpm@sgi.com>2012-07-01 15:50:07 -0400
commit1d9025e56143c0c4aebebdb62e46618d3d284218 (patch)
treec31b34008dbd17ac1811c73cc515ea7f6247e2f0 /fs/xfs/xfs_attr_leaf.h
parent3605431fb9739a30ccd0c6380ae8e3c6f8e670a5 (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.h21
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 @@
31struct attrlist; 31struct attrlist;
32struct attrlist_cursor_kern; 32struct attrlist_cursor_kern;
33struct xfs_attr_list_context; 33struct xfs_attr_list_context;
34struct xfs_dabuf;
35struct xfs_da_args; 34struct xfs_da_args;
36struct xfs_da_state; 35struct xfs_da_state;
37struct xfs_da_state_blk; 36struct xfs_da_state_blk;
@@ -215,7 +214,7 @@ int xfs_attr_shortform_getvalue(struct xfs_da_args *args);
215int xfs_attr_shortform_to_leaf(struct xfs_da_args *args); 214int xfs_attr_shortform_to_leaf(struct xfs_da_args *args);
216int xfs_attr_shortform_remove(struct xfs_da_args *args); 215int xfs_attr_shortform_remove(struct xfs_da_args *args);
217int xfs_attr_shortform_list(struct xfs_attr_list_context *context); 216int xfs_attr_shortform_list(struct xfs_attr_list_context *context);
218int xfs_attr_shortform_allfit(struct xfs_dabuf *bp, struct xfs_inode *dp); 217int xfs_attr_shortform_allfit(struct xfs_buf *bp, struct xfs_inode *dp);
219int xfs_attr_shortform_bytesfit(xfs_inode_t *dp, int bytes); 218int 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 */
225int xfs_attr_leaf_to_node(struct xfs_da_args *args); 224int xfs_attr_leaf_to_node(struct xfs_da_args *args);
226int xfs_attr_leaf_to_shortform(struct xfs_dabuf *bp, 225int 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);
228int xfs_attr_leaf_clearflag(struct xfs_da_args *args); 227int xfs_attr_leaf_clearflag(struct xfs_da_args *args);
229int xfs_attr_leaf_setflag(struct xfs_da_args *args); 228int xfs_attr_leaf_setflag(struct xfs_da_args *args);
@@ -235,14 +234,14 @@ int xfs_attr_leaf_flipflags(xfs_da_args_t *args);
235int xfs_attr_leaf_split(struct xfs_da_state *state, 234int 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);
238int xfs_attr_leaf_lookup_int(struct xfs_dabuf *leaf, 237int xfs_attr_leaf_lookup_int(struct xfs_buf *leaf,
239 struct xfs_da_args *args); 238 struct xfs_da_args *args);
240int xfs_attr_leaf_getvalue(struct xfs_dabuf *bp, struct xfs_da_args *args); 239int xfs_attr_leaf_getvalue(struct xfs_buf *bp, struct xfs_da_args *args);
241int xfs_attr_leaf_add(struct xfs_dabuf *leaf_buffer, 240int xfs_attr_leaf_add(struct xfs_buf *leaf_buffer,
242 struct xfs_da_args *args); 241 struct xfs_da_args *args);
243int xfs_attr_leaf_remove(struct xfs_dabuf *leaf_buffer, 242int xfs_attr_leaf_remove(struct xfs_buf *leaf_buffer,
244 struct xfs_da_args *args); 243 struct xfs_da_args *args);
245int xfs_attr_leaf_list_int(struct xfs_dabuf *bp, 244int 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 */
260xfs_dahash_t xfs_attr_leaf_lasthash(struct xfs_dabuf *bp, int *count); 259xfs_dahash_t xfs_attr_leaf_lasthash(struct xfs_buf *bp, int *count);
261int xfs_attr_leaf_order(struct xfs_dabuf *leaf1_bp, 260int xfs_attr_leaf_order(struct xfs_buf *leaf1_bp,
262 struct xfs_dabuf *leaf2_bp); 261 struct xfs_buf *leaf2_bp);
263int xfs_attr_leaf_newentsize(int namelen, int valuelen, int blocksize, 262int 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__ */