forked from luck/tmp_suning_uos_patched
xfs: remove unused debug counts for xfs_lock_inodes
Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
parent
4371155e80
commit
afd72454e1
|
@ -385,14 +385,6 @@ xfs_isilocked(
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
int xfs_locked_n;
|
|
||||||
int xfs_small_retries;
|
|
||||||
int xfs_middle_retries;
|
|
||||||
int xfs_lots_retries;
|
|
||||||
int xfs_lock_delays;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* xfs_lockdep_subclass_ok() is only used in an ASSERT, so is only called when
|
* xfs_lockdep_subclass_ok() is only used in an ASSERT, so is only called when
|
||||||
* DEBUG or XFS_WARN is set. And MAX_LOCKDEP_SUBCLASSES is then only defined
|
* DEBUG or XFS_WARN is set. And MAX_LOCKDEP_SUBCLASSES is then only defined
|
||||||
|
@ -545,24 +537,11 @@ xfs_lock_inodes(
|
||||||
|
|
||||||
if ((attempts % 5) == 0) {
|
if ((attempts % 5) == 0) {
|
||||||
delay(1); /* Don't just spin the CPU */
|
delay(1); /* Don't just spin the CPU */
|
||||||
#ifdef DEBUG
|
|
||||||
xfs_lock_delays++;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
i = 0;
|
i = 0;
|
||||||
try_lock = 0;
|
try_lock = 0;
|
||||||
goto again;
|
goto again;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
if (attempts) {
|
|
||||||
if (attempts < 5) xfs_small_retries++;
|
|
||||||
else if (attempts < 100) xfs_middle_retries++;
|
|
||||||
else xfs_lots_retries++;
|
|
||||||
} else {
|
|
||||||
xfs_locked_n++;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user