diff options
author | David Howells <dhowells@redhat.com> | 2017-11-02 15:27:47 +0000 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2017-11-13 15:38:17 +0000 |
commit | ad6a942a9e74edea8a4a126a1e434feff6a6d5c2 (patch) | |
tree | 8e952408a98981a3a7494516d69aabb40db973d5 /fs/afs/volume.c | |
parent | 91a90380efbc896eb129878553202c97213d0861 (diff) | |
download | linux-ad6a942a9e74edea8a4a126a1e434feff6a6d5c2.tar.bz2 |
afs: Update the cache index structure
Update the cache index structure in the following ways:
(1) Don't use the volume name followed by the volume type as levels in the
cache index. Volumes can be renamed. Use the volume ID instead.
(2) Don't store the VLDB data for a volume in the tree. If the volume
database should be cached locally, then it should be done in a separate
tree.
(3) Expand the volume ID stored in the cache to 64 bits.
(4) Expand the file/vnode ID stored in the cache to 96 bits.
(5) Increment the cache structure version number to 1.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/volume.c')
-rw-r--r-- | fs/afs/volume.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/afs/volume.c b/fs/afs/volume.c index e2f0e8ec527d..ccac5b1e079d 100644 --- a/fs/afs/volume.c +++ b/fs/afs/volume.c @@ -125,7 +125,7 @@ struct afs_volume *afs_volume_lookup(struct afs_mount_params *params) /* attach the cache and volume location */ #ifdef CONFIG_AFS_FSCACHE - volume->cache = fscache_acquire_cookie(vlocation->cache, + volume->cache = fscache_acquire_cookie(volume->cell->cache, &afs_volume_cache_index_def, volume, true); #endif |