Whamcloud - gitweb
more debug message.
authorlsy <lsy>
Wed, 21 Sep 2005 15:45:19 +0000 (15:45 +0000)
committerlsy <lsy>
Wed, 21 Sep 2005 15:45:19 +0000 (15:45 +0000)
lustre/llite/llite_capa.c
lustre/obdclass/capa.c

index 8aec261..42d1ecb 100644 (file)
@@ -257,8 +257,16 @@ int ll_set_capa(struct inode *inode, struct lookup_intent *it,
         LASSERT(body != NULL);          /* reply already checked out */
         LASSERT_REPSWABBED(req, 1);     /* and swabbed down */
 
-        if (!(body->valid & OBD_MD_CAPA))
+        if (!(body->valid & OBD_MD_CAPA)) {
+                if (atomic_read(&ll_capa_stat))
+                        CDEBUG(D_ERROR, "no capa for (uid %u, op %d, mdsid "
+                               LPU64", ino %lu igen %u)\n",
+                               (unsigned)current->uid, it->it_flags,
+                               id_group(&lli->lli_id), id_ino(&lli->lli_id),
+                               id_gen(&lli->lli_id));
+
                 return 0;
+        }
 
         ENTRY;
 
index 4063426..3a5d75f 100644 (file)
@@ -132,9 +132,9 @@ filter_find_capa(struct hlist_head *head, struct lustre_capa *capa)
         hlist_for_each_entry(ocapa, pos, head, c_hash) {
                 if (ocapa->c_type != FILTER_CAPA)
                         continue;
+
                 if (!memcmp(&ocapa->c_capa, capa,
                             sizeof(struct lustre_capa_data))) {
-
                         DEBUG_CAPA(D_INODE, &ocapa->c_capa, "found %s",
                                    capa_type_name[ocapa->c_type]);
                         return ocapa;