]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita69cc3ad8ea7913f45f698e7927a45ca9e0a970d
tree915fe86af550398d131071456c772053917e298c
parent52b9bf89751f99ddfe1205047d90c91b95ab9ab9
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