autofs4 - fix reset pending flag on mount fail
commit49999ab27eab6289a8e4f450e148bdab521361b2
authorIan Kent <raven@themaw.net>
Thu, 11 Oct 2012 00:00:33 +0000 (11 08:00 +0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Oct 2012 01:21:16 +0000 (11 10:21 +0900)
tree55881aee2989306431d5e98fdd3d9e09d2b5e6c7
parent14ffe009ca60856555df3aec942239d8beed74d3
autofs4 - fix reset pending flag on mount fail

In autofs4_d_automount(), if a mount fail occurs the AUTOFS_INF_PENDING
mount pending flag is not cleared.

One effect of this is when using the "browse" option, directory entry
attributes show up with all "?"s due to the incorrect callback and
subsequent failure return (when in fact no callback should be made).

Signed-off-by: Ian Kent <ikent@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/autofs4/root.c