]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
xfs: add mssing inode cache attempts counter increment
authorLucas Stach <dev@lynxeye.de>
Fri, 28 Aug 2015 04:50:56 +0000 (14:50 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 28 Aug 2015 04:50:56 +0000 (14:50 +1000)
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>
fs/xfs/xfs_icache.c

index 76a9f27832827db72fc58465389a619648a90b56..0a326bd64d4e39b3b197437cf6e964bffb4cca0a 100644 (file)
@@ -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);