diff options
author | Lucas Stach <dev@lynxeye.de> | 2015-08-28 14:50:56 +1000 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-08-28 14:50:56 +1000 |
commit | 8774cf8bacd4e79b7c65cdf1208da264a9d436d2 (patch) | |
tree | 8a97e7f2e07003d8632d45eaf2016eed84e1f5a6 /fs/xfs | |
parent | c9eb256eda4420c06bb10f5e8fbdbe1a34bc98e0 (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>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_icache.c | 2 |
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( if (!ino || XFS_INO_TO_AGNO(mp, ino) >= mp->m_sb.sb_agcount) return -EINVAL; + XFS_STATS_INC(xs_ig_attempts); + /* get the perag structure and ensure that it's inode capable */ pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, ino)); agino = XFS_INO_TO_AGINO(mp, ino); |