]> bbs.cooldavid.org Git - net-next-2.6.git/commit
xfs: remove xfs_iput_new
authorChristoph Hellwig <hch@infradead.org>
Thu, 24 Jun 2010 01:51:19 +0000 (11:51 +1000)
committerAlex Elder <aelder@sgi.com>
Mon, 26 Jul 2010 18:16:44 +0000 (13:16 -0500)
commitef35e9255d4ed12522e836fbcec861e7306d794a
tree4ae5b2aef3f8dac9dd44490f6952e359239aa117
parentd2e078c33c24f97411b0fdd7cd2173e68125e7e3
xfs: remove xfs_iput_new

We never get an i_mode of 0 or a locked VFS inode until we pass in the
XFS_IGET_CREATE flag to xfs_iget, which makes xfs_iput_new equivalent to
xfs_iput for the only caller.  In addition to that xfs_nfs_get_inode
does not even need to lock the inode given that the generation never changes
for a life inode, so just pass a 0 lock_flags to xfs_iget and release
the inode using IRELE in the error path.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/linux-2.6/xfs_export.c
fs/xfs/xfs_iget.c
fs/xfs/xfs_inode.h