Whamcloud - gitweb
LU-5014 osd-ldiskfs: vfs_unlink api changed 35/10235/2
authorBob Glossman <bob.glossman@intel.com>
Tue, 6 May 2014 17:34:11 +0000 (10:34 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 13 May 2014 14:48:20 +0000 (14:48 +0000)
commit425b5606e4fdc7c09513455343a6ef00da7016b1
treef773bbc63f0aaa74069232990189b0aa5dc2618b
parentd0d3a0269bb8326a24bdfc2536721780b5843b60
LU-5014 osd-ldiskfs: vfs_unlink api changed

In newer kernels the vfs_unlink api changed to take
more arguments.  This patch creates a wrapper to let us adapt
to the different versions of vfs_unlink in old and new kernels.
As vfs_unlink is only used in server code
this only impacts server builds of lustre.

Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Change-Id: I3aa9a305530f74ee010fa5173527a37e048a9ef8
Reviewed-on: http://review.whamcloud.com/10235
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Yang Sheng <yang.sheng@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/autoconf/lustre-core.m4
lustre/include/linux/lustre_compat25.h
lustre/osd-ldiskfs/osd_compat.c