OSDN Git Service

fix autofs regression caused by follow_managed() changes
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 15 Jan 2020 03:09:57 +0000 (22:09 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 15 Jan 2020 06:36:46 +0000 (01:36 -0500)
commit508c8772760d4ef9c1a044519b564710c3684fc5
tree0a631ad4a9b355104f8b4951c462e454d4ddae3a
parentc64cd6e34ea340adbb2a0a2f99cc884b96dcdca5
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>
fs/namei.c