fscache: Attach the index key and aux data to the cookie
[linux-2.6-microblaze.git] / fs / fscache / cache.c
index 56cce7f..c184c5a 100644 (file)
@@ -125,7 +125,7 @@ struct fscache_cache *fscache_select_cache_for_object(
        }
 
        /* the parent is unbacked */
-       if (cookie->def->type != FSCACHE_COOKIE_TYPE_INDEX) {
+       if (cookie->type != FSCACHE_COOKIE_TYPE_INDEX) {
                /* cookie not an index and is unbacked */
                spin_unlock(&cookie->lock);
                _leave(" = NULL [cookie ub,ni]");