Whamcloud - gitweb
add 'exist' info in lu_object_header_print()
authortappro <tappro>
Sun, 19 Nov 2006 13:46:14 +0000 (13:46 +0000)
committertappro <tappro>
Sun, 19 Nov 2006 13:46:14 +0000 (13:46 +0000)
lustre/obdclass/lu_object.c

index 10ca014..6f94857 100644 (file)
@@ -354,10 +354,11 @@ static void lu_object_header_print(const struct lu_env *env,
                                    void *cookie, lu_printer_t printer,
                                    const struct lu_object_header *hdr)
 {
-        (*printer)(env, cookie, "header@%p[%#lx, %d, "DFID"%s%s]",
+        (*printer)(env, cookie, "header@%p[%#lx, %d, "DFID"%s%s%s]",
                    hdr, hdr->loh_flags, hdr->loh_ref, PFID(&hdr->loh_fid),
                    hlist_unhashed(&hdr->loh_hash) ? "" : " hash",
-                   list_empty(&hdr->loh_lru) ? "" : " lru");
+                   list_empty(&hdr->loh_lru) ? "" : " lru",
+                   hdr->loh_attr & LOHA_EXISTS ? " exist":"");
 }
 
 /*