VFS: export release_open_intent symbol
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 5 Jan 2010 01:45:06 +0000 (20:45 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 18 Mar 2011 03:20:21 +0000 (23:20 -0400)
Needed to release the resources of the lower nameidata structures that we
create and pass to lower file systems (e.g., when calling vfs_create).

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/namei.c
include/linux/namei.h

index b912b7abe747b02e1bae5955a86598d8b727bdc4..db21454e4132379a6fb6a476bae8cdd7c69e4d66 100644 (file)
@@ -574,6 +574,7 @@ void release_open_intent(struct nameidata *nd)
                        fput(file);
        }
 }
+EXPORT_SYMBOL_GPL(release_open_intent);
 
 static inline int d_revalidate(struct dentry *dentry, struct nameidata *nd)
 {
index 9c8603872c36e9a04e350a930abef359a6c90c86..77453c321e6ce397b53fd9520f8aa46c2189687d 100644 (file)
@@ -81,6 +81,7 @@ extern int vfs_path_lookup(struct dentry *, struct vfsmount *,
 
 extern struct file *lookup_instantiate_filp(struct nameidata *nd, struct dentry *dentry,
                int (*open)(struct inode *, struct file *));
+extern void release_open_intent(struct nameidata *);
 
 extern struct dentry *lookup_one_len(const char *, struct dentry *, int);