summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGu Zheng <guz.fnst@cn.fujitsu.com>2013-07-16 17:56:12 +0800
committerBenjamin LaHaise <bcrl@kvack.org>2013-07-16 09:32:17 -0400
commit55708698c5f153f4e390175cdfc395333b2eafbd (patch)
treeb1d915cae064e83af09b9e2001c25429e289ad6b /include
parent47188d39b5deeebf41f87a02af1b3935866364cf (diff)
downloadlinux-stable-55708698c5f153f4e390175cdfc395333b2eafbd.tar.gz
linux-stable-55708698c5f153f4e390175cdfc395333b2eafbd.tar.bz2
linux-stable-55708698c5f153f4e390175cdfc395333b2eafbd.zip
fs/anon_inode: Introduce a new lib function anon_inode_getfile_private()
Introduce a new lib function anon_inode_getfile_private(), it creates a new file instance by hooking it up to an anonymous inode, and a dentry that describe the "class" of the file, similar to anon_inode_getfile(), but each file holds a single inode. Furthermore, anyone who wants to create a private anon file will benefit from this change. Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com> Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/anon_inodes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/anon_inodes.h b/include/linux/anon_inodes.h
index 8013a45242fe..cf573c22b81e 100644
--- a/include/linux/anon_inodes.h
+++ b/include/linux/anon_inodes.h
@@ -13,6 +13,9 @@ struct file_operations;
struct file *anon_inode_getfile(const char *name,
const struct file_operations *fops,
void *priv, int flags);
+struct file *anon_inode_getfile_private(const char *name,
+ const struct file_operations *fops,
+ void *priv, int flags);
int anon_inode_getfd(const char *name, const struct file_operations *fops,
void *priv, int flags);