Lines Matching refs:fsdef
86 struct cachefiles_object *fsdef; in cachefiles_daemon_add_cache() local
105 fsdef = kmem_cache_alloc(cachefiles_object_jar, GFP_KERNEL); in cachefiles_daemon_add_cache()
106 if (!fsdef) in cachefiles_daemon_add_cache()
109 ASSERTCMP(fsdef->backer, ==, NULL); in cachefiles_daemon_add_cache()
111 atomic_set(&fsdef->usage, 1); in cachefiles_daemon_add_cache()
112 fsdef->type = FSCACHE_COOKIE_TYPE_INDEX; in cachefiles_daemon_add_cache()
114 _debug("- fsdef %p", fsdef); in cachefiles_daemon_add_cache()
200 fsdef->dentry = cachedir; in cachefiles_daemon_add_cache()
201 fsdef->fscache.cookie = NULL; in cachefiles_daemon_add_cache()
203 ret = cachefiles_check_object_type(fsdef); in cachefiles_daemon_add_cache()
220 fsdef->dentry->d_sb->s_id); in cachefiles_daemon_add_cache()
222 fscache_object_init(&fsdef->fscache, NULL, &cache->cache); in cachefiles_daemon_add_cache()
224 ret = fscache_add_cache(&cache->cache, &fsdef->fscache, cache->tag); in cachefiles_daemon_add_cache()
247 dput(fsdef->dentry); in cachefiles_daemon_add_cache()
248 fsdef->dentry = NULL; in cachefiles_daemon_add_cache()
251 kmem_cache_free(cachefiles_object_jar, fsdef); in cachefiles_daemon_add_cache()