Whamcloud - gitweb
- typo fixed
authoralex <alex>
Fri, 4 Jun 2004 13:00:09 +0000 (13:00 +0000)
committeralex <alex>
Fri, 4 Jun 2004 13:00:09 +0000 (13:00 +0000)
lustre/mds/handler.c

index 6b20e03..045daa3 100644 (file)
@@ -949,12 +949,12 @@ static int mds_getattr_name(int offset, struct ptlrpc_request *req,
         cleanup_phase = 2; /* dchild, dparent, locks */
 
 fill_inode:
-        if (dparent) {
-                rc = mds_check_mds_num(obd, dparent->d_cache_inode, name,
-                                       namesize);
-                if (rc)
-                        GOTO(cleanup, rc); 
-        }
+
+        /* let's make sure this name should leave on this mds node */
+        rc = mds_check_mds_num(obd, dparent->d_inode, name, namesize);
+        if (rc)
+                GOTO(cleanup, rc);
+
         if (!DENTRY_VALID(dchild)) {
                 intent_set_disposition(rep, DISP_LOOKUP_NEG);
                 /* in the intent case, the policy clears this error: