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>
Tue, 27 Dec 2016 03:11:26 +0000 (22:11 -0500)
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 4fc034ffd20908cc245102f690ce77ec8d9457d0..1f5c143df768021cde91f97bf3f75326608dd9a9 100644 (file)
@@ -509,6 +509,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 ffc02135c483c2c6363eed8dc0a4b15b2def6656..7d7dfab764f5d1d31e1555f460e0736f8dfa04b3 100644 (file)
@@ -84,6 +84,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);