Whamcloud - gitweb
LU-3974 client: use standard dentry locking function 41/7741/3
authorJames Simmons <uja.ornl@gmail.com>
Mon, 2 Dec 2013 16:44:19 +0000 (11:44 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 11 Dec 2013 14:00:33 +0000 (14:00 +0000)
commit266a0e3f717dcf74f750667e859c9382ddb8b817
treee4a7263e0aae675f32329d5e18e532e90702bab9
parentf4ffab5ec800f0664050dc91ed6a0a24d842834f
LU-3974 client: use standard dentry locking function

Over time the struct dentry reference count have change
its data structure. In the 3.11 kernel it was changed
to a struct lockref. To handle these cases in the past
Lustre implemented a d_refcount wrapper to handle all
these changes. At the same time for 3.11 a d_count()
wrapper was introduced. So this patch moved use to use
this d_count wrapper and if not present we emulate it.

Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: I4c175e789298841f9d599e5195dbd94ccea6216a
Reviewed-on: http://review.whamcloud.com/7741
Reviewed-by: Peng Tao <bergwolf@gmail.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/autoconf/lustre-core.m4
lustre/include/linux/lustre_patchless_compat.h
lustre/include/linux/lvfs.h
lustre/llite/dcache.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/namei.c
lustre/ptlrpc/sec_ctx.c