3 #ifdef CONFIG_CGROUP_DEVICE
4 extern int __devcgroup_inode_permission(struct inode *inode, int mask);
5 extern int devcgroup_inode_mknod(int mode, dev_t dev);
6 static inline int devcgroup_inode_permission(struct inode *inode, int mask)
8 if (likely(!inode->i_rdev))
10 if (!S_ISBLK(inode->i_mode) && !S_ISCHR(inode->i_mode))
12 return __devcgroup_inode_permission(inode, mask);
15 static inline int devcgroup_inode_permission(struct inode *inode, int mask)
17 static inline int devcgroup_inode_mknod(int mode, dev_t dev)