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>
Sat, 30 Apr 2011 10:00:44 +0000 (06:00 -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 4ff7ca530533b121763dbe3b415ad79b162a85fb..24f1f62620824b5be8d7940794a1119ee81ee86a 100644 (file)
@@ -385,6 +385,7 @@ void release_open_intent(struct nameidata *nd)
        else
                fput(nd->intent.open.file);
 }
+EXPORT_SYMBOL_GPL(release_open_intent);
 
 static inline struct dentry *
 do_revalidate(struct dentry *dentry, struct nameidata *nd)
index 05b441d9364202ff09ccaa4db7ca28044db30290..dca6f9a8cd13b30bc37029124160b405c109b638 100644 (file)
@@ -72,6 +72,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);