Whamcloud - gitweb
Fixup nonprimary nfs_export_kernel for extra arguments to lookup_it &
authorgreen <green>
Mon, 26 Apr 2004 18:14:05 +0000 (18:14 +0000)
committergreen <green>
Mon, 26 Apr 2004 18:14:05 +0000 (18:14 +0000)
d_revalidate_it
Also correct declarations of those two functions in vfs_intent nonprimary
patches.
Completely untested.

lustre/kernel_patches/patches/vfs_intent-2.4.20-rh.patch

index 3d554e2..185d6f7 100644 (file)
@@ -1631,11 +1631,20 @@ Index: linux-2.4.20/include/linux/dcache.h
  
  /*
   * linux/include/linux/dcache.h
+@@ -84,6 +130,8 @@
+       unsigned char d_iname[DNAME_INLINE_LEN]; /* small names */
+ };
++struct nameidata;
++
+ struct dentry_operations {
+       int (*d_revalidate)(struct dentry *, int);
+       int (*d_hash) (struct dentry *, struct qstr *);
 @@ -96,8 +141,22 @@
        int (*d_delete)(struct dentry *);
        void (*d_release)(struct dentry *);
        void (*d_iput)(struct dentry *, struct inode *);
-+      int (*d_revalidate_it)(struct dentry *, int, struct lookup_intent *);
++      int (*d_revalidate_it)(struct dentry *, int, struct nameidata *, struct lookup_intent *);
 +      void (*d_pin)(struct dentry *, struct vfsmount * , int);
 +      void (*d_unpin)(struct dentry *, struct vfsmount *, int);
  };
@@ -1724,7 +1733,7 @@ Index: linux-2.4.20/include/linux/fs.h
        int (*create) (struct inode *,struct dentry *,int);
 +      int (*create_it) (struct inode *,struct dentry *,int, struct lookup_intent *);
        struct dentry * (*lookup) (struct inode *,struct dentry *);
-+      struct dentry * (*lookup_it) (struct inode *,struct dentry *, struct lookup_intent *, int flags);
++      struct dentry * (*lookup_it) (struct inode *,struct dentry *, struct nameidata *, struct lookup_intent *, int flags);
        int (*link) (struct dentry *,struct inode *,struct dentry *);
 +      int (*link_raw) (struct nameidata *,struct nameidata *);
        int (*unlink) (struct inode *,struct dentry *);