David Howells bc1527dcb4 afs: Fix some dentry handling in dir ops and missing key_puts
Fix some of dentry handling in AFS directory ops:

 (1) Do d_drop() on the new_dentry before assigning a new inode to it in
     afs_vnode_new_inode().  It's fine to do this before calling afs_iget()
     because the operation has taken place on the server.

 (2) Replace d_instantiate()/d_rehash() with d_add().

 (3) Don't d_drop() the new_dentry in afs_rename() on error.

Also fix afs_link() and afs_rename() to call key_put() on all error paths
where the key is taken.

Signed-off-by: David Howells <dhowells@redhat.com>
2017-11-24 10:56:51 +00:00
..
2008-04-29 08:06:26 -07:00
2017-11-13 15:38:18 +00:00
2017-11-13 15:38:17 +00:00
2017-11-13 15:38:21 +00:00
2017-11-17 10:06:13 +00:00
2017-11-17 10:06:13 +00:00
2017-07-09 14:40:12 -07:00
2017-11-17 10:06:13 +00:00
2017-11-17 10:06:13 +00:00
2017-11-17 10:06:13 +00:00