• Home
  • Raw
  • Download

Lines Matching refs:sd

39 	struct configfs_dirent * sd = dentry->d_fsdata;  in configfs_setattr()  local
44 if (!sd) in configfs_setattr()
47 sd_iattr = sd->s_iattr; in configfs_setattr()
54 sd_iattr->ia_mode = sd->s_mode; in configfs_setattr()
59 sd->s_iattr = sd_iattr; in configfs_setattr()
82 sd_iattr->ia_mode = sd->s_mode = mode; in configfs_setattr()
105 struct inode *configfs_new_inode(umode_t mode, struct configfs_dirent *sd, in configfs_new_inode() argument
114 if (sd->s_iattr) { in configfs_new_inode()
119 set_inode_attr(inode, sd->s_iattr); in configfs_new_inode()
128 static void configfs_set_inode_lock_class(struct configfs_dirent *sd, in configfs_set_inode_lock_class() argument
131 int depth = sd->s_depth; in configfs_set_inode_lock_class()
150 static void configfs_set_inode_lock_class(struct configfs_dirent *sd, in configfs_set_inode_lock_class() argument
160 struct configfs_dirent *sd; in configfs_create() local
169 sd = dentry->d_fsdata; in configfs_create()
170 inode = configfs_new_inode(mode, sd, dentry->d_sb); in configfs_create()
176 configfs_set_inode_lock_class(sd, inode); in configfs_create()
183 const unsigned char * configfs_get_name(struct configfs_dirent *sd) in configfs_get_name() argument
187 BUG_ON(!sd || !sd->s_element); in configfs_get_name()
190 if (sd->s_type & (CONFIGFS_DIR | CONFIGFS_ITEM_LINK)) in configfs_get_name()
191 return sd->s_dentry->d_name.name; in configfs_get_name()
193 if (sd->s_type & (CONFIGFS_ITEM_ATTR | CONFIGFS_ITEM_BIN_ATTR)) { in configfs_get_name()
194 attr = sd->s_element; in configfs_get_name()
205 void configfs_drop_dentry(struct configfs_dirent * sd, struct dentry * parent) in configfs_drop_dentry() argument
207 struct dentry * dentry = sd->s_dentry; in configfs_drop_dentry()
223 struct configfs_dirent * sd; in configfs_hash_and_remove() local
231 list_for_each_entry(sd, &parent_sd->s_children, s_sibling) { in configfs_hash_and_remove()
232 if (!sd->s_element) in configfs_hash_and_remove()
234 if (!strcmp(configfs_get_name(sd), name)) { in configfs_hash_and_remove()
236 list_del_init(&sd->s_sibling); in configfs_hash_and_remove()
238 configfs_drop_dentry(sd, dir); in configfs_hash_and_remove()
239 configfs_put(sd); in configfs_hash_and_remove()