afs: use check_submounts_and_drop()
authorMiklos Szeredi <mszeredi@suse.cz>
Thu, 5 Sep 2013 09:44:38 +0000 (11:44 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 5 Sep 2013 20:23:51 +0000 (16:23 -0400)
commitba81238076d368b9bb78a7fbf6c621b49d4d602f
treef7952e89e39cca6f4e4c68b4aea9a8d14ba2e3cc
parenteed810076685c77dc9a8c5c3593e641c93caed1c
afs: use check_submounts_and_drop()

Do have_submounts(), shrink_dcache_parent() and d_drop() atomically.

check_submounts_and_drop() can deal with negative dentries as well.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
CC: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/afs/dir.c