fix autofs regression caused by follow_managed() changes

we need to reload ->d_flags after the call of ->d_manage() - the thing
might've been called with dentry still negative and have the damn thing
turned positive while we'd waited.

Fixes: d41efb522e90 "fs/namei.c: pull positivity check into follow_managed()"
Reported-by: Ian Kent <raven@themaw.net>
Tested-by: Ian Kent <raven@themaw.net>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 508c8772 c64cd6e3

Changed files
+1
fs
+1
fs/namei.c
··· 1232 1232 BUG_ON(!path->dentry->d_op); 1233 1233 BUG_ON(!path->dentry->d_op->d_manage); 1234 1234 ret = path->dentry->d_op->d_manage(path, false); 1235 + flags = smp_load_acquire(&path->dentry->d_flags); 1235 1236 if (ret < 0) 1236 1237 break; 1237 1238 }