Christoph Hellwig 898621d5a7 xfs: simplify inode to transaction joining
Currently we need to either call IHOLD or xfs_trans_ihold on an inode when
joining it to a transaction via xfs_trans_ijoin.

This patches instead makes xfs_trans_ijoin usable on it's own by doing
an implicity xfs_trans_ihold, which also allows us to drop the third
argument.  For the case where we want to hold a reference on the inode
a xfs_trans_ijoin_ref wrapper is added which does the IHOLD and marks
the inode for needing an xfs_iput.  In addition to the cleaner interface
to the caller this also simplifies the implementation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
2010-07-26 13:16:36 -05:00
..
2010-07-26 13:16:33 -05:00
2009-06-10 17:07:47 +02:00
2010-05-21 18:31:19 -04:00
2009-06-10 17:07:47 +02:00
2009-12-14 23:08:16 -06:00
2009-12-14 23:08:16 -06:00
2010-07-26 13:16:36 -05:00
2009-03-29 09:51:14 +02:00
2009-03-29 09:55:42 +02:00
2008-12-01 11:37:35 +11:00
2009-08-31 14:46:22 -05:00
2010-07-26 13:16:33 -05:00
2010-07-26 13:16:33 -05:00
2010-03-01 16:35:44 -06:00
2009-12-14 23:08:16 -06:00