Whamcloud - gitweb
2.4 build fixes
authorpschwan <pschwan>
Sun, 20 Oct 2002 19:18:38 +0000 (19:18 +0000)
committerpschwan <pschwan>
Sun, 20 Oct 2002 19:18:38 +0000 (19:18 +0000)
lustre/llite/dcache.c
lustre/llite/file.c
lustre/llite/namei.c

index 0b15252..f946c1a 100644 (file)
@@ -110,9 +110,9 @@ int ll_revalidate2(struct dentry *de, int flags, struct lookup_intent *it)
          * 619078. */
         CDEBUG(D_INFO, "d_count: %d\n", atomic_read(&de->d_count));
         if (it && atomic_read(&de->d_count) > 0) {
-                CERROR("returning 1 for %*s during %s because d_count is %d\n",
-                       de->d_name.len, de->d_name.name, ldlm_it2str(it->it_op),
-                       atomic_read(&de->d_count));
+                CDEBUG(D_INFO, "returning 1 for %*s during %s because d_count "
+                       "is %d\n", de->d_name.len, de->d_name.name,
+                       ldlm_it2str(it->it_op), atomic_read(&de->d_count));
                 GOTO(out, rc = 1);
         }
 
index 505333b..d244e7f 100644 (file)
@@ -708,11 +708,13 @@ static int ll_inode_revalidate(struct dentry *dentry)
         RETURN(ll_file_size(inode, lsm));
 }
 
-static int ll_getattr(struct vfsmount *mnt, struct dentry *de, 
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0))
+static int ll_getattr(struct vfsmount *mnt, struct dentry *de,
                       struct kstat *stat)
 {
         return ll_inode_revalidate(de);
 }
+#endif
 
 struct file_operations ll_file_operations = {
         read:           ll_file_read,
@@ -729,7 +731,7 @@ struct inode_operations ll_file_inode_operations = {
         truncate:   ll_truncate,
         setattr:    ll_setattr,
 #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0))
-                getattr: ll_getattr,
+        getattr: ll_getattr,
 #else
         revalidate: ll_inode_revalidate,
 #endif
index c6bc754..26c295a 100644 (file)
@@ -88,7 +88,12 @@ static inline int ext2_add_nondir(struct dentry *dentry, struct inode *inode)
 }
 
 /* methods */
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
+static int ll_find_inode(struct inode *inode, unsigned long ino, void *opaque)
+#else
 static int ll_test_inode(struct inode *inode, void *opaque)
+#endif
 {
         struct ll_read_inode2_cookie *lic = opaque;
         struct mds_body *body = lic->lic_body;
@@ -147,7 +152,7 @@ int ll_unlock(__u32 mode, struct lustre_handle *lockh)
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
 extern int ll_read_inode2(struct inode *inode, void *opaque);
-struct inode *ll_iget(struct super_block *sb, ino_t hash, 
+struct inode *ll_iget(struct super_block *sb, ino_t hash,
                       struct ll_read_inode2_cookie *lic)
 {
         struct inode *inode;
@@ -158,7 +163,7 @@ struct inode *ll_iget(struct super_block *sb, ino_t hash,
                return ERR_PTR(-ENOMEM);
 
        if (inode->i_state & I_NEW) {
-                
+
                unlock_new_inode(inode);
        }
 
@@ -166,7 +171,7 @@ struct inode *ll_iget(struct super_block *sb, ino_t hash,
         return inode;
 }
 #else
-struct inode *ll_iget(struct super_block *sb, inot_t hash, 
+struct inode *ll_iget(struct super_block *sb, ino_t hash,
                       struct ll_read_inode2_cookie *lic)
 {
         struct inode *inode;
@@ -528,7 +533,7 @@ static int ll_mknod(struct inode *dir, struct dentry *dentry, int mode,
         struct lookup_intent *it;
         struct inode *inode;
         int rc = 0;
-        
+
         LL_GET_INTENT(dentry, it);
 
         inode = ll_create_node(dir, dentry->d_name.name, dentry->d_name.len,
@@ -592,7 +597,7 @@ static int ll_link(struct dentry *old_dentry, struct inode * dir,
         struct lookup_intent *it;
         struct inode *inode = old_dentry->d_inode;
         int rc;
-        
+
         LL_GET_INTENT(dentry, it);
 
         if (it && it->it_disposition) {
@@ -758,7 +763,7 @@ static int ll_rename(struct inode * old_dir, struct dentry * old_dentry,
 
         LL_GET_INTENT(new_dentry, it);
 
-        if (it && it->it_disposition) { 
+        if (it && it->it_disposition) {
                 if (tgt_inode) {
                         tgt_inode->i_ctime = CURRENT_TIME;
                         tgt_inode->i_nlink--;