Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8774cf8b authored by Lucas Stach's avatar Lucas Stach Committed by Dave Chinner
Browse files

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: default avatarLucas Stach <dev@lynxeye.de>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent c9eb256e
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -412,6 +412,8 @@ xfs_iget(
	if (!ino || XFS_INO_TO_AGNO(mp, ino) >= mp->m_sb.sb_agcount)
	if (!ino || XFS_INO_TO_AGNO(mp, ino) >= mp->m_sb.sb_agcount)
		return -EINVAL;
		return -EINVAL;


	XFS_STATS_INC(xs_ig_attempts);

	/* get the perag structure and ensure that it's inode capable */
	/* get the perag structure and ensure that it's inode capable */
	pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, ino));
	pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, ino));
	agino = XFS_INO_TO_AGINO(mp, ino);
	agino = XFS_INO_TO_AGINO(mp, ino);