summaryrefslogtreecommitdiffstats
path: root/fs/kernfs
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2015-06-18 16:54:28 -0400
committerTejun Heo <tj@kernel.org>2015-06-18 16:54:28 -0400
commitfb02915f47181e824339d91f8e385fd4bd746d6a (patch)
tree217cfb70b2b3d3e1d9eeb5398fe13c61aad3b2c2 /fs/kernfs
parent4d205676c1028f21760ef1fa57af0628349e0aed (diff)
downloadblackbird-op-linux-fb02915f47181e824339d91f8e385fd4bd746d6a.tar.gz
blackbird-op-linux-fb02915f47181e824339d91f8e385fd4bd746d6a.zip
kernfs: make kernfs_get_inode() public
Move kernfs_get_inode() prototype from fs/kernfs/kernfs-internal.h to include/linux/kernfs.h. It obtains the matching inode for a kernfs_node. It will be used by cgroup for inode based permission checks for now but is generally useful. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/kernfs')
-rw-r--r--fs/kernfs/kernfs-internal.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/kernfs/kernfs-internal.h b/fs/kernfs/kernfs-internal.h
index af9fa7499919..6762bfbd8207 100644
--- a/fs/kernfs/kernfs-internal.h
+++ b/fs/kernfs/kernfs-internal.h
@@ -76,7 +76,6 @@ extern struct kmem_cache *kernfs_node_cache;
/*
* inode.c
*/
-struct inode *kernfs_get_inode(struct super_block *sb, struct kernfs_node *kn);
void kernfs_evict_inode(struct inode *inode);
int kernfs_iop_permission(struct inode *inode, int mask);
int kernfs_iop_setattr(struct dentry *dentry, struct iattr *iattr);
OpenPOWER on IntegriCloud