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;
if (type == CLIENT_CAPA && !ocapa && atomic_read(&ll_capa_stat)) {
CDEBUG(D_ERROR, "can't find capa for (uid %u, op %d, mdsid "
- LPU64", ino %lu igen %u, type %d) failed.\n",
+ LPU64", ino %lu igen %u, type %d)\n",
(unsigned) uid, capa_op, mdsid, ino, igen, type);
atomic_set(&ll_capa_stat, 0);
}