Skip to content
Snippets Groups Projects
Commit e7fc331c authored by Lai Siyao's avatar Lai Siyao
Browse files

more debug message.
parent 203b7391
No related merge requests found
......@@ -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;
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment