Loading fs/configfs/dir.c +2 −7 Original line number Diff line number Diff line Loading @@ -432,16 +432,11 @@ static int configfs_attach_attr(struct configfs_dirent * sd, struct dentry * den (sd->s_type & CONFIGFS_ITEM_BIN_ATTR) ? configfs_init_bin_file : configfs_init_file); if (error) { if (error) configfs_put(sd); return error; } d_rehash(dentry); return 0; } static struct dentry * configfs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) Loading fs/configfs/inode.c +10 −2 Original line number Diff line number Diff line Loading @@ -199,9 +199,17 @@ int configfs_create(struct dentry * dentry, umode_t mode, void (*init)(struct in configfs_set_inode_lock_class(sd, inode); init(inode); if (S_ISDIR(mode) || S_ISLNK(mode)) { /* * ->symlink(), ->mkdir(), configfs_register_subsystem() or * create_default_group() - already hashed. */ d_instantiate(dentry, inode); if (S_ISDIR(mode) || S_ISLNK(mode)) dget(dentry); /* pin link and directory dentries in core */ } else { /* ->lookup() */ d_add(dentry, inode); } return error; } Loading Loading
fs/configfs/dir.c +2 −7 Original line number Diff line number Diff line Loading @@ -432,16 +432,11 @@ static int configfs_attach_attr(struct configfs_dirent * sd, struct dentry * den (sd->s_type & CONFIGFS_ITEM_BIN_ATTR) ? configfs_init_bin_file : configfs_init_file); if (error) { if (error) configfs_put(sd); return error; } d_rehash(dentry); return 0; } static struct dentry * configfs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) Loading
fs/configfs/inode.c +10 −2 Original line number Diff line number Diff line Loading @@ -199,9 +199,17 @@ int configfs_create(struct dentry * dentry, umode_t mode, void (*init)(struct in configfs_set_inode_lock_class(sd, inode); init(inode); if (S_ISDIR(mode) || S_ISLNK(mode)) { /* * ->symlink(), ->mkdir(), configfs_register_subsystem() or * create_default_group() - already hashed. */ d_instantiate(dentry, inode); if (S_ISDIR(mode) || S_ISLNK(mode)) dget(dentry); /* pin link and directory dentries in core */ } else { /* ->lookup() */ d_add(dentry, inode); } return error; } Loading