Whamcloud - gitweb
cl_object_glimpse(): do not use loop control variable after the loop has terminated.
authornikita <nikita>
Tue, 11 Nov 2008 11:48:35 +0000 (11:48 +0000)
committernikita <nikita>
Tue, 11 Nov 2008 11:48:35 +0000 (11:48 +0000)
lustre/obdclass/cl_object.c

index 98f7c09..84d14af 100644 (file)
@@ -298,7 +298,7 @@ int cl_object_glimpse(const struct lu_env *env, struct cl_object *obj,
                                 break;
                 }
         }
-        LU_OBJECT_HEADER(D_DLMTRACE, env, &obj->co_lu,
+        LU_OBJECT_HEADER(D_DLMTRACE, env, lu_object_top(top),
                          "size: "LPU64" mtime: "LPU64" atime: "LPU64" "
                          "ctime: "LPU64" blocks: "LPU64"\n",
                          lvb->lvb_size, lvb->lvb_mtime, lvb->lvb_atime,