GFS2: gfs2_create_inode(): don't bother with d_splice_alias()
authorAl Viro <viro@ZenIV.linux.org.uk>
Wed, 19 Nov 2014 19:35:24 +0000 (19:35 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 20 Nov 2014 10:17:39 +0000 (10:17 +0000)
commit44bb31bac555b0faf2e7068f3a953d5b23883dc9
tree6ee0d8138074d1a363f08365b323c5367af1aae2
parent571a4b57975aaaf50479a59882f1d44ae2737084
GFS2: gfs2_create_inode(): don't bother with d_splice_alias()

dentry is always hashed and negative, inode - non-error, non-NULL and
non-directory.  In such conditions d_splice_alias() is equivalent to
"d_instantiate(dentry, inode) and return NULL", which simplifies the
downstream code and is consistent with the "have to create a new object"
case.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/inode.c