diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-06-23 21:52:50 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-07-26 14:16:44 -0400 |
commit | f2d6761433d69d94e0b39ac44ef0f0f0b0508065 (patch) | |
tree | 12b33cc84c66146b9dc16f8df4884a7e6345f20f /fs/xfs/xfs_iget.c | |
parent | ef35e9255d4ed12522e836fbcec861e7306d794a (diff) |
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>
Diffstat (limited to 'fs/xfs/xfs_iget.c')
-rw-r--r-- | fs/xfs/xfs_iget.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/fs/xfs/xfs_iget.c b/fs/xfs/xfs_iget.c index b460e62bcf86..9e86f2116aa8 100644 --- a/fs/xfs/xfs_iget.c +++ b/fs/xfs/xfs_iget.c | |||
@@ -418,23 +418,6 @@ out_error_or_again: | |||
418 | } | 418 | } |
419 | 419 | ||
420 | /* | 420 | /* |
421 | * Decrement reference count of an inode structure and unlock it. | ||
422 | * | ||
423 | * ip -- the inode being released | ||
424 | * lock_flags -- this parameter indicates the inode's locks to be | ||
425 | * to be released. See the comment on xfs_iunlock() for a list | ||
426 | * of valid values. | ||
427 | */ | ||
428 | void | ||
429 | xfs_iput(xfs_inode_t *ip, | ||
430 | uint lock_flags) | ||
431 | { | ||
432 | xfs_itrace_entry(ip); | ||
433 | xfs_iunlock(ip, lock_flags); | ||
434 | IRELE(ip); | ||
435 | } | ||
436 | |||
437 | /* | ||
438 | * This is called free all the memory associated with an inode. | 421 | * This is called free all the memory associated with an inode. |
439 | * It must free the inode itself and any buffers allocated for | 422 | * It must free the inode itself and any buffers allocated for |
440 | * if_extents/if_data and if_broot. It must also free the lock | 423 | * if_extents/if_data and if_broot. It must also free the lock |