35 #include <linux/capability.h>
36 #include <linux/sched.h>
38 #include <linux/slab.h>
67 struct iattr * sd_iattr;
77 sd_iattr = kzalloc(
sizeof(
struct iattr),
GFP_KERNEL);
99 inode->
i_sb->s_time_gran);
102 inode->
i_sb->s_time_gran);
105 inode->
i_sb->s_time_gran);
139 inode->
i_mapping->a_ops = &configfs_aops;
140 inode->
i_mapping->backing_dev_info = &configfs_backing_dev_info;
141 inode->
i_op = &configfs_inode_operations;
148 set_inode_attr(inode, sd->
s_iattr);
150 set_default_inode_attr(inode, mode);
155 #ifdef CONFIG_LOCKDEP
160 int depth = sd->s_depth;
163 if (depth <=
ARRAY_SIZE(default_group_class)) {
165 &default_group_class[depth - 1]);
172 " for the locking correctness validator.\n");
190 struct inode *inode =
NULL;
192 struct inode *p_inode;
205 p_inode = dentry->
d_parent->d_inode;
207 configfs_set_inode_lock_class(sd, inode);
249 struct dentry * dentry = sd->
s_dentry;
252 spin_lock(&dentry->
d_lock);
253 if (!(d_unhashed(dentry) && dentry->
d_inode)) {
256 spin_unlock(&dentry->
d_lock);
259 spin_unlock(&dentry->
d_lock);
290 return bdi_init(&configfs_backing_dev_info);