diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-07 20:25:46 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-14 05:15:55 +0100 |
commit | 5cf3b560af903c82e9fc12578fac2fbcb8ca1533 (patch) | |
tree | 690f56e3adb5366db3a48ef457269610f4ab284a /fs/configfs/dir.c | |
parent | ceph: don't bother with d_rehash() in splice_dentry() (diff) | |
download | linux-5cf3b560af903c82e9fc12578fac2fbcb8ca1533.tar.xz linux-5cf3b560af903c82e9fc12578fac2fbcb8ca1533.zip |
configfs: move d_rehash() into configfs_create() for regular files
... and turn it into d_add in there
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/configfs/dir.c')
-rw-r--r-- | fs/configfs/dir.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c index f419519ec41f..214ec14149d9 100644 --- a/fs/configfs/dir.c +++ b/fs/configfs/dir.c @@ -432,14 +432,9 @@ 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; + return error; } static struct dentry * configfs_lookup(struct inode *dir, |