Mark Vitale 5076dfc14b LINUX: consolidate duplicate code in osi_TryEvictDentries
The two stanzas for HAVE_DCACHE_LOCK are now functionally identical;
remove the preprocessor conditionals and duplicate code.

Minor functional change is incurrred for very old (before 2.6.38) Linux
versions that have dcache_lock; we are now obtaining the d_lock as well.

This is safe because d_lock is also quite old (pre-git, 2.6.12), and it
is a spinlock that's only held for checking d_unhashed.  Therefore, it
should have negligible performance impact.  It cannot cause deadlocks or
violate locking order, because spinlocks can't be held across sleeps.

Change-Id: I08faf204e6bd82c4401cdf6048d12cd551dd18fc
Reviewed-on: https://gerrit.openafs.org/12792
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Andrew Deason <adeason@dson.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
2018-01-01 22:05:09 -05:00
..
2014-12-01 11:27:15 -05:00
2016-04-30 13:27:41 -04:00
2016-04-26 19:34:59 -04:00
2014-12-01 11:27:15 -05:00
2017-12-17 15:31:31 -05:00
2014-11-05 08:37:51 -05:00
2017-12-17 15:31:31 -05:00
2015-02-11 09:05:40 -05:00
2015-06-12 09:43:29 -04:00
2016-07-17 00:33:10 -04:00
2015-12-02 19:03:49 -05:00
2014-12-01 11:27:15 -05:00
2013-01-07 20:28:58 -08:00
2015-06-12 09:43:05 -04:00
2017-12-18 23:37:22 -05:00
2016-05-05 12:51:14 -04:00
2013-07-02 15:14:09 -07:00
2012-01-23 14:18:59 -08:00
2010-07-06 08:16:25 -07:00
2012-01-23 14:18:59 -08:00
2014-11-05 08:37:51 -05:00