Whamcloud - gitweb
add support for build HEAD without vfs_intent patches.
authorshadow <shadow>
Thu, 6 Dec 2007 10:00:09 +0000 (10:00 +0000)
committershadow <shadow>
Thu, 6 Dec 2007 10:00:09 +0000 (10:00 +0000)
add sles10 support.

lustre/include/lustre_mdc.h
lustre/include/obd.h
lustre/kernel_patches/series/2.6-sles10.series
lustre/ldlm/ldlm_lock.c
lustre/llite/dcache.c
lustre/llite/llite_internal.h
lustre/llite/namei.c
lustre/lmv/lmv_intent.c

index 7b43f4f..f025ead 100644 (file)
@@ -21,6 +21,9 @@
 #   include <linux/posix_acl_xattr.h>
 #  endif
 # endif
 #   include <linux/posix_acl_xattr.h>
 #  endif
 # endif
+# ifndef HAVE_VFS_INTENT_PATCHES
+# include <linux/lustre_intent.h>
+# endif
 #endif
 #include <lustre_handles.h>
 #include <libcfs/kp30.h>
 #endif
 #include <lustre_handles.h>
 #include <libcfs/kp30.h>
index 64844a2..edad05b 100644 (file)
@@ -1266,6 +1266,8 @@ struct md_open_data {
         struct list_head          mod_replay_list;
 };
 
         struct list_head          mod_replay_list;
 };
 
+struct lookup_intent;
+
 struct md_ops {
         int (*m_getstatus)(struct obd_export *, struct lu_fid *,
                            struct obd_capa **);
 struct md_ops {
         int (*m_getstatus)(struct obd_export *, struct lu_fid *,
                            struct obd_capa **);
index 0036920..90c0d31 100644 (file)
@@ -1,6 +1,4 @@
 lustre_version.patch
 lustre_version.patch
-vfs_intent-2.6-sles10.patch
-vfs_races-2.6.18-vanilla.patch
 jbd-2.6.10-jcberr.patch
 export_symbols-2.6.12.patch 
 dev_read_only-2.6-fc5.patch 
 jbd-2.6.10-jcberr.patch
 export_symbols-2.6.12.patch 
 dev_read_only-2.6-fc5.patch 
@@ -10,6 +8,7 @@ sd_iostats-2.6-rhel5.patch
 export_symbol_numa-2.6-fc5.patch 
 blkdev_tunables-2.6-sles10.patch
 jbd-stats-2.6-sles10.patch
 export_symbol_numa-2.6-fc5.patch 
 blkdev_tunables-2.6-sles10.patch
 jbd-stats-2.6-sles10.patch
+i_filter_data.patch
 jbd-journal-chksum-2.6-sles10.patch
 proc-sleep-2.6.16-sles10.patch 
 export-nr_free_buffer_pages.patch 
 jbd-journal-chksum-2.6-sles10.patch
 proc-sleep-2.6.16-sles10.patch 
 export-nr_free_buffer_pages.patch 
index c7ec85a..b42d6a5 100644 (file)
@@ -28,7 +28,9 @@
 
 #ifdef __KERNEL__
 # include <libcfs/libcfs.h>
 
 #ifdef __KERNEL__
 # include <libcfs/libcfs.h>
+# ifndef HAVE_VFS_INTENT_PATCHES
 # include <linux/lustre_intent.h>
 # include <linux/lustre_intent.h>
+# endif
 #else
 # include <liblustre.h>
 # include <libcfs/kp30.h>
 #else
 # include <liblustre.h>
 # include <libcfs/kp30.h>
index 65100a7..1a16669 100644 (file)
@@ -520,7 +520,7 @@ out:
 #endif
         }
         RETURN(rc);
 #endif
         }
         RETURN(rc);
-        
+
         /*
          * This part is here to combat evil-evil race in real_lookup on 2.6
          * kernels.  The race details are: We enter do_lookup() looking for some
         /*
          * This part is here to combat evil-evil race in real_lookup on 2.6
          * kernels.  The race details are: We enter do_lookup() looking for some
@@ -544,7 +544,7 @@ do_lookup:
                 ll_lookup_finish_locks(it, de);
                 it = &lookup_it;
         }
                 ll_lookup_finish_locks(it, de);
                 it = &lookup_it;
         }
-        
+
         /* Do real lookup here. */
         op_data = ll_prep_md_op_data(NULL, parent, NULL, de->d_name.name,
                                      de->d_name.len, 0, (it->it_op & IT_CREAT ?
         /* Do real lookup here. */
         op_data = ll_prep_md_op_data(NULL, parent, NULL, de->d_name.name,
                                      de->d_name.len, 0, (it->it_op & IT_CREAT ?
@@ -560,7 +560,7 @@ do_lookup:
                                                            DLM_REPLY_REC_OFF,
                                                            sizeof(*mdt_body));
                 struct lu_fid fid = {.f_seq = 0, .f_oid = 0, .f_ver = 0};
                                                            DLM_REPLY_REC_OFF,
                                                            sizeof(*mdt_body));
                 struct lu_fid fid = {.f_seq = 0, .f_oid = 0, .f_ver = 0};
-                
+
                 if (de->d_inode)
                         fid = *ll_inode2fid(de->d_inode);
 
                 if (de->d_inode)
                         fid = *ll_inode2fid(de->d_inode);
 
@@ -731,7 +731,7 @@ int ll_revalidate_nd(struct dentry *dentry, struct nameidata *nd)
                         ll_d2d(dentry)->lld_it = it;
                         it = NULL; /* avoid freeing */
                 }
                         ll_d2d(dentry)->lld_it = it;
                         it = NULL; /* avoid freeing */
                 }
-                        
+
 out_it:
                 if (it) {
                         ll_intent_release(it);
 out_it:
                 if (it) {
                         ll_intent_release(it);
index 17da0f1..6d0c8c0 100644 (file)
 #include <lustre_ver.h>
 #include <lustre_disk.h>  /* for s2sbi */
 
 #include <lustre_ver.h>
 #include <lustre_disk.h>  /* for s2sbi */
 
+#ifndef FMODE_EXEC
+#define FMODE_EXEC 0
+#endif
+
 #define LL_IT2STR(it) ((it) ? ldlm_it2str((it)->it_op) : "0")
 #define LUSTRE_FPRIVATE(file) ((file)->private_data)
 
 #define LL_IT2STR(it) ((it) ? ldlm_it2str((it)->it_op) : "0")
 #define LUSTRE_FPRIVATE(file) ((file)->private_data)
 
index c93bb34..e6e204a 100644 (file)
@@ -335,20 +335,19 @@ struct dentry *ll_find_alias(struct inode *inode, struct dentry *de)
                        de->d_parent, de->d_inode, atomic_read(&de->d_count));
                 return dentry;
         }
                        de->d_parent, de->d_inode, atomic_read(&de->d_count));
                 return dentry;
         }
-        
+
         if (last_discon) {
                 CDEBUG(D_DENTRY, "Reuse disconnected dentry %p inode %p "
                         "refc %d\n", last_discon, last_discon->d_inode,
                         atomic_read(&last_discon->d_count));
         if (last_discon) {
                 CDEBUG(D_DENTRY, "Reuse disconnected dentry %p inode %p "
                         "refc %d\n", last_discon, last_discon->d_inode,
                         atomic_read(&last_discon->d_count));
-                __d_rehash(de, 0);
                 dget_locked(last_discon);
                 dget_locked(last_discon);
-                __d_move(last_discon, de);
                 spin_unlock(&dcache_lock);
                 d_rehash(de);
                 spin_unlock(&dcache_lock);
                 d_rehash(de);
+                d_move(last_discon, de);
                 iput(inode);
                 return last_discon;
         }
                 iput(inode);
                 return last_discon;
         }
-       
+
         ll_d_add(de, inode);
 
         spin_unlock(&dcache_lock);
         ll_d_add(de, inode);
 
         spin_unlock(&dcache_lock);
index 14f68b6..206cb11 100644 (file)
@@ -32,6 +32,9 @@
 #include <asm/div64.h>
 #include <linux/seq_file.h>
 #include <linux/namei.h>
 #include <asm/div64.h>
 #include <linux/seq_file.h>
 #include <linux/namei.h>
+# ifndef HAVE_VFS_INTENT_PATCHES
+# include <linux/lustre_intent.h>
+# endif
 #else
 #include <liblustre.h>
 #endif
 #else
 #include <liblustre.h>
 #endif