OSDN Git Service

afs: Update the cache index structure
authorDavid Howells <dhowells@redhat.com>
Thu, 2 Nov 2017 15:27:47 +0000 (15:27 +0000)
committerDavid Howells <dhowells@redhat.com>
Mon, 13 Nov 2017 15:38:17 +0000 (15:38 +0000)
commitad6a942a9e74edea8a4a126a1e434feff6a6d5c2
tree8e952408a98981a3a7494516d69aabb40db973d5
parent91a90380efbc896eb129878553202c97213d0861
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>
fs/afs/cache.c
fs/afs/internal.h
fs/afs/vlocation.c
fs/afs/volume.c