xfs: use btree block initialisation functions in growfs
authorDave Chinner <dchinner@redhat.com>
Tue, 13 Nov 2012 22:40:27 +0000 (16:40 -0600)
committerBen Myers <bpm@sgi.com>
Tue, 13 Nov 2012 22:40:27 +0000 (16:40 -0600)
commitb64f3a390d3477517cbff7d613e551705540769b
tree1e82fffaf55236f3eda42f55b7a772c4baaa5d98
parentee73259b401317117e7f5d4834c270b10b12bc8e
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>
fs/xfs/xfs_btree.c
fs/xfs/xfs_btree.h
fs/xfs/xfs_fsops.c