]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/fscache/netfs.c
FS-Cache: Simplify cookie retention for fscache_objects, fixing oops
[karo-tx-linux.git] / fs / fscache / netfs.c
index e028b8eb1c409bf730579f3401082fcb8f31c67e..b1bb6117473a25a292ccf326dcd607fcf4a4f354 100644 (file)
@@ -40,6 +40,7 @@ int __fscache_register_netfs(struct fscache_netfs *netfs)
        /* initialise the primary index cookie */
        atomic_set(&netfs->primary_index->usage, 1);
        atomic_set(&netfs->primary_index->n_children, 0);
+       atomic_set(&netfs->primary_index->n_active, 1);
 
        netfs->primary_index->def               = &fscache_fsdef_netfs_def;
        netfs->primary_index->parent            = &fscache_fsdef_index;