Lines Matching refs:sd

60 	struct configfs_dirent * sd = dentry->d_fsdata;  in configfs_setattr()  local
65 if (!sd) in configfs_setattr()
68 sd_iattr = sd->s_iattr; in configfs_setattr()
75 sd_iattr->ia_mode = sd->s_mode; in configfs_setattr()
79 sd->s_iattr = sd_iattr; in configfs_setattr()
105 sd_iattr->ia_mode = sd->s_mode = mode; in configfs_setattr()
127 struct inode *configfs_new_inode(umode_t mode, struct configfs_dirent *sd, in configfs_new_inode() argument
136 if (sd->s_iattr) { in configfs_new_inode()
141 set_inode_attr(inode, sd->s_iattr); in configfs_new_inode()
150 static void configfs_set_inode_lock_class(struct configfs_dirent *sd, in configfs_set_inode_lock_class() argument
153 int depth = sd->s_depth; in configfs_set_inode_lock_class()
172 static void configfs_set_inode_lock_class(struct configfs_dirent *sd, in configfs_set_inode_lock_class() argument
183 struct configfs_dirent *sd; in configfs_create() local
192 sd = dentry->d_fsdata; in configfs_create()
193 inode = configfs_new_inode(mode, sd, dentry->d_sb); in configfs_create()
199 configfs_set_inode_lock_class(sd, inode); in configfs_create()
211 const unsigned char * configfs_get_name(struct configfs_dirent *sd) in configfs_get_name() argument
215 BUG_ON(!sd || !sd->s_element); in configfs_get_name()
218 if (sd->s_type & (CONFIGFS_DIR | CONFIGFS_ITEM_LINK)) in configfs_get_name()
219 return sd->s_dentry->d_name.name; in configfs_get_name()
221 if (sd->s_type & CONFIGFS_ITEM_ATTR) { in configfs_get_name()
222 attr = sd->s_element; in configfs_get_name()
233 void configfs_drop_dentry(struct configfs_dirent * sd, struct dentry * parent) in configfs_drop_dentry() argument
235 struct dentry * dentry = sd->s_dentry; in configfs_drop_dentry()
251 struct configfs_dirent * sd; in configfs_hash_and_remove() local
259 list_for_each_entry(sd, &parent_sd->s_children, s_sibling) { in configfs_hash_and_remove()
260 if (!sd->s_element) in configfs_hash_and_remove()
262 if (!strcmp(configfs_get_name(sd), name)) { in configfs_hash_and_remove()
264 list_del_init(&sd->s_sibling); in configfs_hash_and_remove()
266 configfs_drop_dentry(sd, dir); in configfs_hash_and_remove()
267 configfs_put(sd); in configfs_hash_and_remove()