Whamcloud - gitweb
LU-6428 llite: Add check of d_alias and d_child 60/14060/10
authorWu Libin <lwu@ddn.com>
Fri, 24 Apr 2015 21:00:30 +0000 (17:00 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 1 May 2015 03:40:34 +0000 (03:40 +0000)
commit1a14c28cb1136f1f67fdb14e848b2d461b26f941
treefdc75e5460761e347c56557be09c45339575cd66
parent86274f9e1979e3da69952b2e7f5058e202dffb28
LU-6428 llite: Add check of d_alias and d_child

In some specific kernel versions like debian wheezy 3.2 or Ubuntu
14.04, d_alias has been moved to d_u.d_alias and d_u.d_child has
been moved to d_child in struct dentry in <linux/dcache.h>. This
patch add a check of this two members to make the llite be
compatible with those versions.

Signed-off-by: Wu Libin <lwu@ddn.com>
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Change-Id: I8ae63fdd887609e2049ac5e90f2bf4ff2ab14fd4
Reviewed-on: http://review.whamcloud.com/14060
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Thomas Stibor <t.stibor@gsi.de>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/autoconf/lustre-core.m4
lustre/include/lustre_compat.h
lustre/llite/dcache.c
lustre/llite/llite_lib.c
lustre/llite/namei.c