diff options
author | Dave Chinner <dchinner@redhat.com> | 2010-03-08 11:24:07 +1100 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-05-19 09:58:08 -0500 |
commit | 4aaf15d1aa9673dd2cc45c48957c946cb4aa2694 (patch) | |
tree | aec24df27ca9cde2d359b77f9ac97f8ad44a1baa /fs/xfs/xfs_inode.c | |
parent | 43f5efc5b59db1b66e39fe9fdfc4ba6a27152afa (diff) | |
download | kernel_samsung_tuna-4aaf15d1aa9673dd2cc45c48957c946cb4aa2694.zip kernel_samsung_tuna-4aaf15d1aa9673dd2cc45c48957c946cb4aa2694.tar.gz kernel_samsung_tuna-4aaf15d1aa9673dd2cc45c48957c946cb4aa2694.tar.bz2 |
xfs: Add inode pin counts to traces
We don't record pin counts in inode events right now, and this makes
it difficult to track down problems related to pinning inodes. Add
the pin count to the inode trace class and add trace events for
pinning and unpinning inodes.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index 0ffd564..8cd6e8d 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -2449,6 +2449,8 @@ xfs_iunpin_nowait( { ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL|XFS_ILOCK_SHARED)); + trace_xfs_inode_unpin_nowait(ip, _RET_IP_); + /* Give the log a push to start the unpinning I/O */ xfs_log_force_lsn(ip->i_mount, ip->i_itemp->ili_last_lsn, 0); |