Whamcloud - gitweb
LU-16913 revert "EX-7849 quota: extra debug messages"
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 19 Jan 2024 19:28:05 +0000 (19:28 +0000)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 23 Jan 2024 02:04:10 +0000 (02:04 +0000)
This reverts commit 02242f6f1ba1867756ee5b91abd2207f646436cf.
Extra debugging is no longer needed.

Change-Id: I083b70a911ac85fb5a1054c8409146bb393e94b0
Test-Parameters: trivial testlist=sanity-quota
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53746
Reviewed-by: Sergey Cheremencev <scherementsev@ddn.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/quota/lquota_entry.c
lustre/quota/lquota_internal.h

index e52e832..ae495d8 100644 (file)
@@ -341,7 +341,6 @@ struct lquota_entry *lqe_locate_find(const struct lu_env *env,
                        "hash:%s\n", qid->qid_uid, site->lqs_hash->hs_name);
                RETURN(ERR_PTR(-ENOMEM));
        }
-       CDEBUG(D_QUOTA, "Allocated lqe %p\n", new);
 
        atomic_set(&new->lqe_ref, 1); /* hold 1 for caller */
        new->lqe_id     = *qid;
@@ -366,9 +365,7 @@ struct lquota_entry *lqe_locate_find(const struct lu_env *env,
        if (lqe == new)
                new = NULL;
 out:
-       if (new) {
-               CDEBUG(D_QUOTA, "new %p lqe %p\n", new, lqe);
+       if (new)
                lqe_putref(new);
-       }
        RETURN(lqe);
 }
index e1718cf..93e687e 100644 (file)
@@ -277,12 +277,8 @@ static inline void lqe_putref(struct lquota_entry *lqe)
 {
        LASSERT(lqe != NULL);
        LASSERT(atomic_read(&lqe->lqe_ref) > 0);
-       if (atomic_dec_and_test(&lqe->lqe_ref)) {
-               CDEBUG(D_QUOTA, "free lqe %p lqe_gl %d\n", lqe, lqe->lqe_gl);
-               if (unlikely(lqe->lqe_gl))
-                       dump_stack();
+       if (atomic_dec_and_test(&lqe->lqe_ref))
                OBD_SLAB_FREE_PTR(lqe, lqe_kmem);
-       }
 }
 
 static inline int lqe_is_master(struct lquota_entry *lqe)