]> git.baikalelectronics.ru Git - kernel.git/commit
fs/anon_inode: Introduce a new lib function anon_inode_getfile_private()
authorGu Zheng <guz.fnst@cn.fujitsu.com>
Tue, 16 Jul 2013 09:56:12 +0000 (17:56 +0800)
committerBenjamin LaHaise <bcrl@kvack.org>
Tue, 16 Jul 2013 13:32:17 +0000 (09:32 -0400)
commite23c6752f5a1c4f5d684b88ed9c27590321293f2
treeb1d915cae064e83af09b9e2001c25429e289ad6b
parenta802d7f8459eee28f7b11d7dee7ac6e333bff61e
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>
fs/anon_inodes.c
include/linux/anon_inodes.h