afs: Init inode before accessing cache
authorDavid Howells <dhowells@redhat.com>
Fri, 6 Apr 2018 13:17:24 +0000 (14:17 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 9 Apr 2018 20:53:55 +0000 (21:53 +0100)
commit5800db810a2308544a9e42686a2fc7f8682418ba
tree0aa975627cccb7a387befe587ad202e250a4d7b8
parentd55b4da4331efdfe2be1bcc7bc217bd3f7c47870
afs: Init inode before accessing cache

We no longer parse symlinks when we get the inode to determine if this
symlink is actually a mountpoint as we detect that by examining the mode
instead (symlinks are always 0777 and mountpoints 0644).

Access the cache after mapping the status so that we don't have to manually
set the inode size now.

Note that this may need adjusting if the disconnected operation is
implemented as the file metadata may have to be obtained from the cache.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/inode.c