Lines Matching defs:sd
39 struct configfs_dirent * sd = dentry->d_fsdata;
44 if (!sd)
47 sd_iattr = sd->s_iattr;
54 sd_iattr->ia_mode = sd->s_mode;
59 sd->s_iattr = sd_iattr;
82 sd_iattr->ia_mode = sd->s_mode = mode;
104 struct inode *configfs_new_inode(umode_t mode, struct configfs_dirent *sd,
113 if (sd->s_iattr) {
118 set_inode_attr(inode, sd->s_iattr);
127 static void configfs_set_inode_lock_class(struct configfs_dirent *sd,
130 int depth = sd->s_depth;
149 static void configfs_set_inode_lock_class(struct configfs_dirent *sd,
159 struct configfs_dirent *sd;
168 sd = dentry->d_fsdata;
169 inode = configfs_new_inode(mode, sd, dentry->d_sb);
175 configfs_set_inode_lock_class(sd, inode);
182 const unsigned char * configfs_get_name(struct configfs_dirent *sd)
186 BUG_ON(!sd || !sd->s_element);
189 if (sd->s_type & (CONFIGFS_DIR | CONFIGFS_ITEM_LINK))
190 return sd->s_dentry->d_name.name;
192 if (sd->s_type & (CONFIGFS_ITEM_ATTR | CONFIGFS_ITEM_BIN_ATTR)) {
193 attr = sd->s_element;
204 void configfs_drop_dentry(struct configfs_dirent * sd, struct dentry * parent)
206 struct dentry * dentry = sd->s_dentry;
222 struct configfs_dirent * sd;
230 list_for_each_entry(sd, &parent_sd->s_children, s_sibling) {
231 if (!sd->s_element)
233 if (!strcmp(configfs_get_name(sd), name)) {
235 list_del_init(&sd->s_sibling);
237 configfs_drop_dentry(sd, dir);
238 configfs_put(sd);