Whamcloud - gitweb
LU-167 Return "-ENOENT" instead of "-ESTALE" when getattr against non-existent object
[fs/lustre-release.git] / lustre / mdt / mdt_handler.c
index f97bf96..c111721 100644 (file)
@@ -992,7 +992,7 @@ relock:
                         LU_OBJECT_DEBUG(D_WARNING, info->mti_env,
                                         &child->mot_obj.mo_lu,
                                         "Object doesn't exist!\n");
-                        GOTO(out_child, rc = -ESTALE);
+                        GOTO(out_child, rc = -ENOENT);
                 }
 
                 if (!(child_bits & MDS_INODELOCK_UPDATE)) {