UBIFS: make debugging messages light again
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / linux / device_cgroup.h
blob7aad1f440867e796ed6f5d2c811771e700e7ad15
1 #include <linux/module.h>
2 #include <linux/fs.h>
4 #ifdef CONFIG_CGROUP_DEVICE
5 extern int __devcgroup_inode_permission(struct inode *inode, int mask);
6 extern int devcgroup_inode_mknod(int mode, dev_t dev);
7 static inline int devcgroup_inode_permission(struct inode *inode, int mask)
9 if (likely(!inode->i_rdev))
10 return 0;
11 if (!S_ISBLK(inode->i_mode) && !S_ISCHR(inode->i_mode))
12 return 0;
13 return __devcgroup_inode_permission(inode, mask);
15 #else
16 static inline int devcgroup_inode_permission(struct inode *inode, int mask)
17 { return 0; }
18 static inline int devcgroup_inode_mknod(int mode, dev_t dev)
19 { return 0; }
20 #endif