aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2010-09-21 20:47:20 -0400
committerAlex Elder <aelder@sgi.com>2010-10-18 16:07:43 -0400
commitbd32d25a7cf7242512e77e70bab63df4402ab91c (patch)
tree8188f1f697a74e433369f11c03c4c6dfce70956e /fs
parentd1583a3833290ab9f8b13a064acbb5e508c59f60 (diff)
xfs: remove debug assert for per-ag reference counting
When we start taking references per cached buffer to the the perag it is cached on, it will blow the current debug maximum reference count assert out of the water. The assert has never caught a bug, and we have tracing to track changes if there ever is a problem, so just remove it. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/xfs/xfs_mount.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c
index aeb9d72ebf6e..00c7a876807d 100644
--- a/fs/xfs/xfs_mount.c
+++ b/fs/xfs/xfs_mount.c
@@ -210,8 +210,6 @@ xfs_perag_get(struct xfs_mount *mp, xfs_agnumber_t agno)
210 pag = radix_tree_lookup(&mp->m_perag_tree, agno); 210 pag = radix_tree_lookup(&mp->m_perag_tree, agno);
211 if (pag) { 211 if (pag) {
212 ASSERT(atomic_read(&pag->pag_ref) >= 0); 212 ASSERT(atomic_read(&pag->pag_ref) >= 0);
213 /* catch leaks in the positive direction during testing */
214 ASSERT(atomic_read(&pag->pag_ref) < 1000);
215 ref = atomic_inc_return(&pag->pag_ref); 213 ref = atomic_inc_return(&pag->pag_ref);
216 } 214 }
217 spin_unlock(&mp->m_perag_lock); 215 spin_unlock(&mp->m_perag_lock);