Lines Matching full:ent
58 struct ceph_fscache_entry *ent; in ceph_fscache_register_fs() local
62 list_for_each_entry(ent, &ceph_fscache_list, list) { in ceph_fscache_register_fs()
63 if (memcmp(&ent->fsid, fsid, sizeof(*fsid))) in ceph_fscache_register_fs()
65 if (ent->uniq_len != uniq_len) in ceph_fscache_register_fs()
67 if (uniq_len && memcmp(ent->uniquifier, fscache_uniq, uniq_len)) in ceph_fscache_register_fs()
76 ent = kzalloc(sizeof(*ent) + uniq_len, GFP_KERNEL); in ceph_fscache_register_fs()
77 if (!ent) { in ceph_fscache_register_fs()
82 memcpy(&ent->fsid, fsid, sizeof(*fsid)); in ceph_fscache_register_fs()
84 memcpy(&ent->uniquifier, fscache_uniq, uniq_len); in ceph_fscache_register_fs()
85 ent->uniq_len = uniq_len; in ceph_fscache_register_fs()
90 &ent->fsid, sizeof(ent->fsid) + uniq_len, in ceph_fscache_register_fs()
95 ent->fscache = fsc->fscache; in ceph_fscache_register_fs()
96 list_add_tail(&ent->list, &ceph_fscache_list); in ceph_fscache_register_fs()
98 kfree(ent); in ceph_fscache_register_fs()
313 struct ceph_fscache_entry *ent; in ceph_fscache_unregister_fs() local
317 list_for_each_entry(ent, &ceph_fscache_list, list) { in ceph_fscache_unregister_fs()
318 if (ent->fscache == fsc->fscache) { in ceph_fscache_unregister_fs()
319 list_del(&ent->list); in ceph_fscache_unregister_fs()
320 kfree(ent); in ceph_fscache_unregister_fs()