summaryrefslogtreecommitdiffstats
path: root/fs/hfs/inode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-04-30 19:51:43 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2018-05-22 14:27:59 -0400
commit6b9cceead0d1fc478fbc25a7d8d8f006d061a1a2 (patch)
tree2d0674a495d9ebf91dcf5cd2a265522b88c14c46 /fs/hfs/inode.c
parent18fbbfc2bfab4c45074bddb16c478b4366a265d5 (diff)
downloadlinux-6b9cceead0d1fc478fbc25a7d8d8f006d061a1a2.tar.bz2
hfs: use d_splice_alias()
code is simpler that way Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/hfs/inode.c')
-rw-r--r--fs/hfs/inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/hfs/inode.c b/fs/hfs/inode.c
index 2538b49cc349..0612fa367bd1 100644
--- a/fs/hfs/inode.c
+++ b/fs/hfs/inode.c
@@ -544,8 +544,7 @@ static struct dentry *hfs_file_lookup(struct inode *dir, struct dentry *dentry,
hlist_add_fake(&inode->i_hash);
mark_inode_dirty(inode);
out:
- d_add(dentry, inode);
- return NULL;
+ return d_splice_alias(inode, dentry);
}
void hfs_evict_inode(struct inode *inode)