From ecfb27dded64df5ea1ebdccc40da53206920c984 Mon Sep 17 00:00:00 2001
From: deen <deen>
Date: Thu, 14 Aug 2008 12:27:10 +0000
Subject: [PATCH] Replace D_OTHER with D_INFO in ldlm_resource_dump() calls: 1)
 Move ldlm_resource_dump() calls from D_OTHER to D_INFO in non-error cases. 2)
 In ldlm_resource_add_lock(), move CDEBUG() and ldlm_lock_dump() back to
 D_OTHER for consistency with another debug output in this function.

b=15953
i=johann
i=nathan
---
 lustre/ldlm/ldlm_flock.c    | 2 +-
 lustre/ldlm/ldlm_lock.c     | 2 +-
 lustre/ldlm/ldlm_resource.c | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lustre/ldlm/ldlm_flock.c b/lustre/ldlm/ldlm_flock.c
index e2971762a8..1b2d3ebbbb 100644
--- a/lustre/ldlm/ldlm_flock.c
+++ b/lustre/ldlm/ldlm_flock.c
@@ -447,7 +447,7 @@ restart:
         if (added)
                 ldlm_flock_destroy(req, mode, *flags);
 
-        ldlm_resource_dump(D_OTHER, res);
+        ldlm_resource_dump(D_INFO, res);
         RETURN(LDLM_ITER_CONTINUE);
 }
 
diff --git a/lustre/ldlm/ldlm_lock.c b/lustre/ldlm/ldlm_lock.c
index 31103ebcb7..63c5987277 100644
--- a/lustre/ldlm/ldlm_lock.c
+++ b/lustre/ldlm/ldlm_lock.c
@@ -788,7 +788,7 @@ static void ldlm_granted_list_add_lock(struct ldlm_lock *lock,
 
         check_res_locked(res);
 
-        ldlm_resource_dump(D_OTHER, res);
+        ldlm_resource_dump(D_INFO, res);
         CDEBUG(D_OTHER, "About to add this lock:\n");
         ldlm_lock_dump(D_OTHER, lock, 0);
 
diff --git a/lustre/ldlm/ldlm_resource.c b/lustre/ldlm/ldlm_resource.c
index 92d789f90b..f256639b02 100644
--- a/lustre/ldlm/ldlm_resource.c
+++ b/lustre/ldlm/ldlm_resource.c
@@ -1026,8 +1026,8 @@ void ldlm_resource_add_lock(struct ldlm_resource *res, struct list_head *head,
         check_res_locked(res);
 
         ldlm_resource_dump(D_INFO, res);
-        CDEBUG(D_INFO, "About to add this lock:\n");
-        ldlm_lock_dump(D_INFO, lock, 0);
+        CDEBUG(D_OTHER, "About to add this lock:\n");
+        ldlm_lock_dump(D_OTHER, lock, 0);
 
         if (lock->l_destroyed) {
                 CDEBUG(D_OTHER, "Lock destroyed, not adding to resource\n");
@@ -1046,7 +1046,7 @@ void ldlm_resource_insert_lock_after(struct ldlm_lock *original,
 
         check_res_locked(res);
 
-        ldlm_resource_dump(D_OTHER, res);
+        ldlm_resource_dump(D_INFO, res);
         CDEBUG(D_OTHER, "About to insert this lock after %p:\n", original);
         ldlm_lock_dump(D_OTHER, new, 0);
 
-- 
GitLab