]> 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)
commitc06ef7b9ddb1621fc24ea235b6c37028d161b5ee
treeb1d915cae064e83af09b9e2001c25429e289ad6b
parent59624774a09a075dbabcdf9cce1425368f00af8a
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