autofs4-2.6.34-rc1 - fix link_count usage
authorIan Kent <raven@themaw.net>
Mon, 10 May 2010 08:46:08 +0000 (16:46 +0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 10 May 2010 16:48:10 +0000 (09:48 -0700)
commitf7422464b57088071201cd94027662d8469f153b
treed6eea687462815fbcbe43aa6b273f672babd5f2e
parentb77b907fae863f3bc546a336a8bc5e660d371788
autofs4-2.6.34-rc1 - fix link_count usage

After commit 1f36f774b2 ("Switch !O_CREAT case to use of do_last()") in
2.6.34-rc1 autofs direct mounts stopped working.  This is caused by
current->link_count being 0 when ->follow_link() is called from
do_filp_open().

I can't work out why this hasn't been seen before Als patch series.

This patch removes the autofs dependence on current->link_count.

Signed-off-by: Ian Kent <raven@themaw.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/autofs4/root.c