Whamcloud - gitweb
b=5863
authoralex <alex>
Fri, 11 Mar 2005 22:17:22 +0000 (22:17 +0000)
committeralex <alex>
Fri, 11 Mar 2005 22:17:22 +0000 (22:17 +0000)
- assertion was wrong

lustre/mds/handler.c

index 9efe83a..0383838 100644 (file)
@@ -1086,7 +1086,7 @@ static int mds_getattr_lock(struct ptlrpc_request *req, int offset,
                 LASSERT(dparent);
 
                 dchild = ll_lookup_one_len(name, dparent, namesize - 1);
-                LASSERT(dchild);
+                LASSERT(!IS_ERR(dchild));
                 LDLM_LOCK_PUT(granted_lock);
         }