]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Increase to 64-bit volume ID and 96-bit vnode ID for YFS
authorDavid Howells <dhowells@redhat.com>
Fri, 19 Oct 2018 23:57:57 +0000 (00:57 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 23 Oct 2018 23:41:08 +0000 (00:41 +0100)
commit41bbaa1b38d844671a2e19ac84b70d877a2443d2
tree2a4acc9c8cef93e940520369f61034485f4eb434
parentf80c63e005b96ac7fd11d6364f9e6955a6a78197
afs: Increase to 64-bit volume ID and 96-bit vnode ID for YFS

Increase the sizes of the volume ID to 64 bits and the vnode ID (inode
number equivalent) to 96 bits to allow the support of YFS.

This requires the iget comparator to check the vnode->fid rather than i_ino
and i_generation as i_ino is not sufficiently capacious.  It also requires
this data to be placed into the vnode cache key for fscache.

For the moment, just discard the top 32 bits of the vnode ID when returning
it though stat.

Signed-off-by: David Howells <dhowells@redhat.com>
17 files changed:
fs/afs/afs.h
fs/afs/cache.c
fs/afs/callback.c
fs/afs/dir.c
fs/afs/dynroot.c
fs/afs/file.c
fs/afs/flock.c
fs/afs/fsclient.c
fs/afs/inode.c
fs/afs/proc.c
fs/afs/rotate.c
fs/afs/security.c
fs/afs/super.c
fs/afs/volume.c
fs/afs/write.c
fs/afs/xattr.c
include/trace/events/afs.h