afs: Do not avoid DNLC if fakestat is set
authorAndrew Deason <adeason@sinenomine.net>
Fri, 18 May 2012 21:55:09 +0000 (17:55 -0400)
committerDerrick Brashear <shadow@your-file-system.com>
Thu, 6 Sep 2012 11:42:51 +0000 (04:42 -0700)
commit35d5be2adf2456e26aa6b10935352dc19eb6b3f2
tree08e2098fb5b5bd99d29bd2d0cb679745acee3225
parent238b88624a8fef39557d397cc336c88bd8efc5b1
afs: Do not avoid DNLC if fakestat is set

Currently in afs_lookup we avoid putting an entry in the DNLC if
'force_eval' is unset, in order to avoid populating the DNLC with
mountpoint symlinks (we want the target of the mountpoint to be in
there instead, the root dir). However, if -fakestat or -fakestat-all
are enabled, 'force_eval' is always false, since we only set it to
true under certain circumstances when evaluating mountpoints.

To fix this, populate the dnlc for non-mountpoints, even if force_eval
is unset.

Change-Id: Ia2fef1bea9a08182715d587517f81074147aa4e7
Reviewed-on: http://gerrit.openafs.org/7431
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/VNOPS/afs_vnop_lookup.c