diff options
author | Dave Chinner <dchinner@redhat.com> | 2012-11-13 23:40:27 +0100 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-11-13 23:40:27 +0100 |
commit | b64f3a390d3477517cbff7d613e551705540769b (patch) | |
tree | 1e82fffaf55236f3eda42f55b7a772c4baaa5d98 /fs/xfs/xfs_btree.h | |
parent | xfs: add more attribute tree trace points. (diff) | |
download | linux-b64f3a390d3477517cbff7d613e551705540769b.tar.xz linux-b64f3a390d3477517cbff7d613e551705540769b.zip |
xfs: use btree block initialisation functions in growfs
Factor xfs_btree_init_block() to be independent of the btree cursor,
and use the function to initialise btree blocks in the growfs code.
This makes adding support for different format btree blocks simple.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by Rich Johnston <rjohnston@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_btree.h')
-rw-r--r-- | fs/xfs/xfs_btree.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/xfs/xfs_btree.h b/fs/xfs/xfs_btree.h index 5b240de104c0..c9cf2d00e236 100644 --- a/fs/xfs/xfs_btree.h +++ b/fs/xfs/xfs_btree.h @@ -378,6 +378,17 @@ xfs_btree_reada_bufs( xfs_agblock_t agbno, /* allocation group block number */ xfs_extlen_t count); /* count of filesystem blocks */ +/* + * Initialise a new btree block header + */ +void +xfs_btree_init_block( + struct xfs_mount *mp, + struct xfs_buf *bp, + __u32 magic, + __u16 level, + __u16 numrecs, + unsigned int flags); /* * Common btree core entry points. |