xfs: factor out inode initialisation
authorDave Chinner <david@fromorbit.com>
Mon, 31 Aug 2009 23:56:51 +0000 (20:56 -0300)
committerFelix Blyakher <felixb@sgi.com>
Tue, 1 Sep 2009 17:44:27 +0000 (12:44 -0500)
commit85c0b2ab5e69ca6133380ead1c50e0840d136b39
tree915fe86af550398d131071456c772053917e298c
parent1da1daed813c534263a87ffc36d5b775e65231ad
xfs: factor out inode initialisation

Factor out code to initialize new inode clusters into a function of it's own.
This keeps xfs_ialloc_ag_alloc smaller and better structured and enables a
future inode cluster initialization transaction.  Also initialize the agno
variable earlier in xfs_ialloc_ag_alloc to avoid repeated byte swaps.

[hch:  The original patch is from Dave from his unpublished inode create
 transaction patch series, with some modifcations by me to apply stand-alone]

Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Signed-off-by: Felix Blyakher <felixb@sgi.com>
fs/xfs/xfs_ialloc.c