From f5deef1b1650625f85ec35a9d3637ecbfb0f0b66 Mon Sep 17 00:00:00 2001
From: yangsheng <yangsheng>
Date: Fri, 1 Aug 2008 08:40:25 +0000
Subject: [PATCH] Branch b1_6 b=15308

Fixed the macro for sles10 but it broken the sles9.
---
 lustre/include/linux/lustre_compat25.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lustre/include/linux/lustre_compat25.h b/lustre/include/linux/lustre_compat25.h
index b754ea68f6..93677907b4 100644
--- a/lustre/include/linux/lustre_compat25.h
+++ b/lustre/include/linux/lustre_compat25.h
@@ -466,7 +466,8 @@ static inline int mapping_has_pages(struct address_space *mapping)
 
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,7))
 #define ll_set_dflags(dentry, flags) do { dentry->d_vfs_flags |= flags; } while(0)
-#define ll_vfs_symlink(dir, dentry, path, mode) vfs_symlink(dir, dentry, path)
+#define ll_vfs_symlink(dir, dentry, mnt, path, mode) \
+                       vfs_symlink(dir, dentry, path)
 #else
 #define ll_set_dflags(dentry, flags) do { \
                 spin_lock(&dentry->d_lock); \
-- 
GitLab