fs/anon_inode: Introduce a new lib function anon_inode_getfile_private()
authorGu Zheng <[email protected]>
Tue, 16 Jul 2013 09:56:12 +0000 (17:56 +0800)
committerBenjamin LaHaise <[email protected]>
Tue, 16 Jul 2013 13:32:17 +0000 (09:32 -0400)
commit55708698c5f153f4e390175cdfc395333b2eafbd
treeb1d915cae064e83af09b9e2001c25429e289ad6b
parent47188d39b5deeebf41f87a02af1b3935866364cf
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 <[email protected]>
Signed-off-by: Benjamin LaHaise <[email protected]>
fs/anon_inodes.c
include/linux/anon_inodes.h