Whamcloud - gitweb
Get an error from right dentry.
authordeen <deen>
Tue, 16 Sep 2008 10:10:50 +0000 (10:10 +0000)
committerdeen <deen>
Tue, 16 Sep 2008 10:10:50 +0000 (10:10 +0000)
b=15574
i=johann
i=alexey.lyashkov

lustre/mdt/mdt_open.c

index 9720d90..6f95d69 100644 (file)
@@ -717,7 +717,7 @@ void mdt_reconstruct_open(struct mdt_thread_info *info,
                 }
                 child = mdt_object_find(env, mdt, rr->rr_fid2);
                 if (IS_ERR(child)) {
-                        rc = PTR_ERR(parent);
+                        rc = PTR_ERR(child);
                         LCONSOLE_WARN("Child "DFID" lookup error %d."
                                       " Evicting client %s with export %s.\n",
                                       PFID(mdt_object_fid(child)), rc,