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;
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;