Christoph Hellwig ec3ba85f40 xfs: more sensible inode refcounting for ialloc
Currently we return iodes from xfs_ialloc with just a single reference held.
But we need two references, as one is dropped during transaction commit and
the second needs to be transfered to the VFS.  Change xfs_ialloc to use
xfs_iget plus xfs_trans_ijoin_ref to grab two references to the inode,
and remove the now superflous IHOLD calls from all callers.  This also
greatly simplifies the error handling in xfs_create and also allow to remove
xfs_trans_iget as no other callers are left.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
2011-02-22 20:32:28 -06:00
..
2011-01-11 20:28:29 -06:00
2011-01-11 20:28:29 -06:00
2010-10-18 15:08:07 -05:00
2010-10-18 15:08:07 -05:00
2010-10-18 15:08:07 -05:00
2010-10-18 15:08:07 -05:00
2010-12-16 16:05:51 -06:00
2011-01-12 08:46:41 -06:00
2010-10-18 15:08:07 -05:00
2010-10-18 15:08:06 -05:00
2010-10-18 15:08:06 -05:00
2010-10-18 15:08:06 -05:00