aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2015-08-28 00:50:56 -0400
committerDave Chinner <david@fromorbit.com>2015-08-28 00:50:56 -0400
commit8774cf8bacd4e79b7c65cdf1208da264a9d436d2 (patch)
tree8a97e7f2e07003d8632d45eaf2016eed84e1f5a6
parentc9eb256eda4420c06bb10f5e8fbdbe1a34bc98e0 (diff)
xfs: add mssing inode cache attempts counter increment
Increasing the inode cache attempt counter was apparently dropped while refactoring the cache code and so stayed at the initial 0 value. Add the increment back to make the runtime stats more useful. Signed-off-by: Lucas Stach <dev@lynxeye.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
-rw-r--r--fs/xfs/xfs_icache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_icache.c b/fs/xfs/xfs_icache.c
index 76a9f2783282..0a326bd64d4e 100644
--- a/fs/xfs/xfs_icache.c
+++ b/fs/xfs/xfs_icache.c
@@ -412,6 +412,8 @@ xfs_iget(
412 if (!ino || XFS_INO_TO_AGNO(mp, ino) >= mp->m_sb.sb_agcount) 412 if (!ino || XFS_INO_TO_AGNO(mp, ino) >= mp->m_sb.sb_agcount)
413 return -EINVAL; 413 return -EINVAL;
414 414
415 XFS_STATS_INC(xs_ig_attempts);
416
415 /* get the perag structure and ensure that it's inode capable */ 417 /* get the perag structure and ensure that it's inode capable */
416 pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, ino)); 418 pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, ino));
417 agino = XFS_INO_TO_AGINO(mp, ino); 419 agino = XFS_INO_TO_AGINO(mp, ino);