Whamcloud - gitweb
- needless debug messages are removed
[fs/lustre-release.git] / lustre / mds / handler.c
index ecfc6a2..f54693a 100644 (file)
@@ -1447,23 +1447,10 @@ static int mds_getattr_lock(struct ptlrpc_request *req, int offset,
                         dparent = mds_id2dentry(obd, &body->id1, NULL);
                         LASSERT(!IS_ERR(dparent));
                         dchild = ll_lookup_one_len(name, dparent, namesize - 1);
-                        if (IS_ERR(dchild)) {
-                                DEBUG_REQ(D_ERROR, req, "resent, not enqueuing new locks");
-                                CDEBUG(D_ERROR, "lock against [%lu:%lu]/%*s\n",
-                                                (unsigned long) id_ino(&body->id1),
-                                                (unsigned long) id_gen(&body->id1),
-                                                namesize - 1, name);
-                        }
                         LASSERT(!IS_ERR(dchild));
                 } else {
                         /* client wants to get attr. by id */
                         dchild = mds_id2dentry(obd, &body->id1, NULL);
-                        if (IS_ERR(dchild)) {
-                                DEBUG_REQ(D_ERROR, req, "resent, not enqueuing new locks");
-                                CDEBUG(D_ERROR, "lock against [%lu:%lu]\n",
-                                                (unsigned long) id_ino(&body->id1),
-                                                (unsigned long) id_gen(&body->id1));
-                        }
                         LASSERT(!IS_ERR(dchild));
                 }
                 LDLM_LOCK_PUT(granted_lock);