]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Linux 3.11: Adapt to d_count changes
authorMarc Dionne <marc.dionne@your-file-system.com>
Tue, 3 Sep 2013 11:55:14 +0000 (07:55 -0400)
committerStephan Wiesand <stephan.wiesand@desy.de>
Tue, 24 Sep 2013 18:32:46 +0000 (11:32 -0700)
commit8e14537c605b3b6867c923dfef782492191939c7
treec6913cad274c7f60cb32590a9b721baaac1a0d10
parent47fb5837820e0dcf46c0c19a15b81848e75be3aa
Linux 3.11: Adapt to d_count changes

In preparation for upcoming changes in the 3.12 cycle, d_lockref
was introduced late in the 3.11 cycle.  The dentry's d_lock and
d_count are moved to this new structure.  A new d_lock macro makes
the change transparent for locking, but direct users of d_count
must adapt.  A new d_count() helper function is provided and
should now be used.

Use the new d_count() helper function if available, and move
some of the ifdef logic into a helper compatibility function.

Reviewed-on: http://gerrit.openafs.org/10219
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Simon Wilkinson <simonxwilkinson@gmail.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit 1f577e41b65e9bd213a915a296ecf5bedd17fcc1)

Change-Id: I43db7b00f966a214259b6814d0308b7164e31295
Reviewed-on: http://gerrit.openafs.org/10241
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
acinclude.m4
src/afs/LINUX/osi_compat.h
src/afs/LINUX/osi_vnodeops.c