]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/ceph/cache.c
FS-Cache: Provide the ability to enable/disable cookies
[karo-tx-linux.git] / fs / ceph / cache.c
index 6bfe65e0b03831280b0e66e96d616be9ee55e6b1..7db2e6ca4b8f0b07146c137a80e24567a03d3e43 100644 (file)
@@ -68,7 +68,7 @@ int ceph_fscache_register_fs(struct ceph_fs_client* fsc)
 {
        fsc->fscache = fscache_acquire_cookie(ceph_cache_netfs.primary_index,
                                              &ceph_fscache_fsid_object_def,
-                                             fsc);
+                                             fsc, true);
 
        if (fsc->fscache == NULL) {
                pr_err("Unable to resgister fsid: %p fscache cookie", fsc);
@@ -204,7 +204,7 @@ void ceph_fscache_register_inode_cookie(struct ceph_fs_client* fsc,
 
        ci->fscache = fscache_acquire_cookie(fsc->fscache,
                                             &ceph_fscache_inode_object_def,
-                                            ci);
+                                            ci, true);
 done:
        mutex_unlock(&inode->i_mutex);