summaryrefslogtreecommitdiffstats
path: root/fs/fscache/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fscache/cache.c')
-rw-r--r--fs/fscache/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fscache/cache.c b/fs/fscache/cache.c
index c184c5a356ff..cdcb376ef8df 100644
--- a/fs/fscache/cache.c
+++ b/fs/fscache/cache.c
@@ -220,6 +220,7 @@ int fscache_add_cache(struct fscache_cache *cache,
220{ 220{
221 struct fscache_cache_tag *tag; 221 struct fscache_cache_tag *tag;
222 222
223 ASSERTCMP(ifsdef->cookie, ==, &fscache_fsdef_index);
223 BUG_ON(!cache->ops); 224 BUG_ON(!cache->ops);
224 BUG_ON(!ifsdef); 225 BUG_ON(!ifsdef);
225 226
@@ -248,7 +249,6 @@ int fscache_add_cache(struct fscache_cache *cache,
248 if (!cache->kobj) 249 if (!cache->kobj)
249 goto error; 250 goto error;
250 251
251 ifsdef->cookie = &fscache_fsdef_index;
252 ifsdef->cache = cache; 252 ifsdef->cache = cache;
253 cache->fsdef = ifsdef; 253 cache->fsdef = ifsdef;
254 254