afs: Get the target vnode in afs_rmdir() and get a callback on it
authorDavid Howells <dhowells@redhat.com>
Fri, 19 Oct 2018 23:57:58 +0000 (00:57 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 23 Oct 2018 23:41:08 +0000 (00:41 +0100)
commitf58db83fd3325a305cf615f4ffb0e6f60745ed8a
treec7e94eeb615d960433a3e27795463342e9f0e2d5
parent12d8e95a911eb3921a1fecf1e4d913654f6f4fb5
afs: Get the target vnode in afs_rmdir() and get a callback on it

Get the target vnode in afs_rmdir() and validate it before we attempt the
deletion, The vnode pointer will be passed through to the delivery function
in a later patch so that the delivery function can mark it deleted.

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