Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Lucas Stach and committed by
Dave Chinner
8774cf8b c9eb256e

+2
+2
fs/xfs/xfs_icache.c
··· 412 412 if (!ino || XFS_INO_TO_AGNO(mp, ino) >= mp->m_sb.sb_agcount) 413 413 return -EINVAL; 414 414 415 + XFS_STATS_INC(xs_ig_attempts); 416 + 415 417 /* get the perag structure and ensure that it's inode capable */ 416 418 pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, ino)); 417 419 agino = XFS_INO_TO_AGINO(mp, ino);