Linux: 2.6.38: deal with dcache_lock removal
authorMarc Dionne <marc.c.dionne@gmail.com>
Sat, 29 Jan 2011 01:59:17 +0000 (20:59 -0500)
committerDerrick Brashear <shadow@dementia.org>
Wed, 9 Feb 2011 02:58:56 +0000 (18:58 -0800)
commit2eca7aef7b2940e4ef5f9901ce28481af6edb6dd
treefee87eb7221d814083aa421f187cb40d5d02b163
parent5bcc0ea735ea519298c98b46c66bf1326cdee5e4
Linux: 2.6.38: deal with dcache_lock removal

dcache_lock is gone in 2.6.38, and some of the vfs locking rules
have changed.

Of interest for openafs:
- inode->i_lock protects the d_alias list
- dentry->d_lock protects d_unhashed()

Add a new configure test for dcache_lock, and replace its use by
the appropriate new lock(s).

Change-Id: Ic8d860d4f9f6438e966c15f5178c0d82343e3e1c
Reviewed-on: http://gerrit.openafs.org/3771
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
acinclude.m4
src/afs/LINUX/osi_vcache.c
src/afs/afs_daemons.c
src/cf/linux-test4.m4