Whamcloud - gitweb
Branch HEAD
authoryangsheng <yangsheng>
Wed, 20 Feb 2008 08:27:45 +0000 (08:27 +0000)
committeryangsheng <yangsheng>
Wed, 20 Feb 2008 08:27:45 +0000 (08:27 +0000)
b=14576
i=adilger
i=green

Fixed the build issues for HEAD patchless client with vanilla-2.6.22.

lustre/autoconf/lustre-core.m4
lustre/include/linux/lustre_compat25.h
lustre/llite/llite_lib.c
lustre/llite/remote_perm.c

index 820355f..9f5ee0e 100644 (file)
@@ -1325,8 +1325,10 @@ AC_DEFUN([LC_CONST_ACL_SIZE],
 tmp_flags="$CFLAGS"
 CFLAGS="$CFLAGS -I $LINUX/include $EXTRA_KCFLAGS"
 AC_TRY_RUN([
+#define __KERNEL__
 #include <linux/autoconf.h>
 #include <linux/types.h>
+#undef __KERNEL__
 // block include 
 #define __LINUX_POSIX_ACL_H
 
index 110d54f..019d92d 100644 (file)
@@ -378,5 +378,9 @@ int ll_unregister_blkdev(unsigned int dev, const char *name)
 #endif
 
 
+#ifdef FS_ODD_RENAME
+#define FS_RENAME_DOES_D_MOVE FS_ODD_RENAME
+#endif
+
 #endif /* __KERNEL__ */
 #endif /* _COMPAT25_H */
index eb45e5b..1c58f0e 100644 (file)
@@ -894,7 +894,7 @@ int ll_fill_super(struct super_block *sb)
 
         cfs_module_get();
 
-        sb->s_type->fs_flags |= FS_ODD_RENAME;
+        sb->s_type->fs_flags |= FS_RENAME_DOES_D_MOVE;
         /* client additional sb info */
         lsi->lsi_llsbi = sbi = ll_init_sbi();
         if (!sbi) {
index 20cfa35..3e4ef7e 100644 (file)
@@ -45,7 +45,7 @@ static inline struct ll_remote_perm *alloc_ll_remote_perm(void)
 {
         struct ll_remote_perm *lrp;
 
-        OBD_SLAB_ALLOC(lrp, ll_remote_perm_cachep, SLAB_KERNEL, sizeof(*lrp));
+        OBD_SLAB_ALLOC(lrp, ll_remote_perm_cachep, GFP_KERNEL, sizeof(*lrp));
         if (lrp)
                 INIT_HLIST_NODE(&lrp->lrp_list);
         return lrp;
@@ -66,7 +66,7 @@ struct hlist_head *alloc_rmtperm_hash(void)
         struct hlist_head *hash;
         int i;
 
-        OBD_SLAB_ALLOC(hash, ll_rmtperm_hash_cachep, SLAB_KERNEL,
+        OBD_SLAB_ALLOC(hash, ll_rmtperm_hash_cachep, GFP_KERNEL,
                        REMOTE_PERM_HASHSIZE * sizeof(*hash));
 
         if (!hash)