Whamcloud - gitweb
file lbnal_cb.c was initially added on branch b1_4.
[fs/lustre-release.git] / lustre / kernel_patches / patches / export_lookup_create-2.4.24.patch
1 diff -rupN linux-2.4.24/fs/namei.c linux-2.4.24.new/fs/namei.c
2 --- linux-2.4.24/fs/namei.c     2004-05-19 10:58:50.000000000 +0300
3 +++ linux-2.4.24.new/fs/namei.c 2004-05-19 11:04:05.725450928 +0300
4 @@ -1391,8 +1391,8 @@ int open_namei(const char *pathname, int
5  
6  
7  /* SMP-safe */
8 -static struct dentry *lookup_create(struct nameidata *nd, int is_dir,
9 -                                   struct lookup_intent *it)
10 +struct dentry *lookup_create(struct nameidata *nd, int is_dir,
11 +                             struct lookup_intent *it)
12  {
13         struct dentry *dentry;
14  
15 @@ -1412,6 +1412,7 @@ enoent:
16  fail:
17         return dentry;
18  }
19 +EXPORT_SYMBOL(lookup_create);
20  
21  int vfs_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev)
22  {
23 diff -rupN linux-2.4.24/include/linux/fs.h linux-2.4.24.new/include/linux/fs.h
24 --- linux-2.4.24/include/linux/fs.h     2004-05-19 10:58:50.178421368 +0300
25 +++ linux-2.4.24.new/include/linux/fs.h 2004-05-19 11:04:35.373943672 +0300
26 @@ -1129,6 +1129,8 @@ extern struct file *filp_open(const char
27  extern struct file * dentry_open(struct dentry *, struct vfsmount *, int);
28  extern int open_namei_it(const char *filename, int namei_flags, int mode,
29                          struct nameidata *nd, struct lookup_intent *it);
30 +extern struct dentry *lookup_create(struct nameidata *nd, int is_dir,
31 +                                    struct lookup_intent *it);
32  extern struct file *dentry_open_it(struct dentry *dentry, struct vfsmount *mnt,
33                             int flags, struct lookup_intent *it);
34  extern int revalidate_it(struct dentry *dentry, struct lookup_intent *it);