xfs: remove xfs_iput
xfs_iput is just a small wrapper for xfs_iunlock + IRELE. Having this out of line wrapper means the trace events in those two can't track their caller properly. So just remove the wrapper and opencode the unlock + rele in the few callers. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com>
This commit is contained in:
committed by
Alex Elder
parent
ef35e9255d
commit
f2d6761433
@@ -417,23 +417,6 @@ out_error_or_again:
|
||||
return error;
|
||||
}
|
||||
|
||||
/*
|
||||
* Decrement reference count of an inode structure and unlock it.
|
||||
*
|
||||
* ip -- the inode being released
|
||||
* lock_flags -- this parameter indicates the inode's locks to be
|
||||
* to be released. See the comment on xfs_iunlock() for a list
|
||||
* of valid values.
|
||||
*/
|
||||
void
|
||||
xfs_iput(xfs_inode_t *ip,
|
||||
uint lock_flags)
|
||||
{
|
||||
xfs_itrace_entry(ip);
|
||||
xfs_iunlock(ip, lock_flags);
|
||||
IRELE(ip);
|
||||
}
|
||||
|
||||
/*
|
||||
* This is called free all the memory associated with an inode.
|
||||
* It must free the inode itself and any buffers allocated for
|
||||
|
Reference in New Issue
Block a user