Linux: Only use automount for volume roots
authorMarc Dionne <marc.dionne@your-file-system.com>
Wed, 29 Jul 2015 12:03:14 +0000 (09:03 -0300)
committerBenjamin Kaduk <kaduk@mit.edu>
Wed, 26 Aug 2015 15:20:34 +0000 (11:20 -0400)
commit05f64de7d723a8d5430d9b5928c2025838a6fa52
tree49c5ca8c9ba98bfbcd1387d5848666cf61356724
parentc38382c12763128d3f66e750e5e7b1c767ac74f7
Linux: Only use automount for volume roots

As long as we avoid using directory aliases when crossing
a mount point (at the volume root), we should always get
to a given non root directory with the same dentry.
The mechanism added by commit de381aa0 ("Linux: Make dir
dentry aliases act like symlinks") is therefore only really
necessary for a volume root.

With kernel 4.2 it is not possible to tweak the "total link
count", resulting in ELOOP errors when looking up a path
with 40 or more directories that are being looked up for
the first time.  With this change, only mountpoints will
count against the limit.

Change-Id: Id0e5a51d579eee51ecb8d7fb575a7a30740ea70e
Reviewed-on: http://gerrit.openafs.org/11945
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Daria Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/LINUX/osi_vnodeops.c