gfs2_create_inode(): don't bother with d_splice_alias()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 18 Sep 2014 21:42:35 +0000 (17:42 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 19 Nov 2014 17:57:21 +0000 (12:57 -0500)
commit81295ce635a83f052497656348e9edc794b4cae6
tree02bf0e9f8b3bc6bde2dcb8821614daf9afd6d3d5
parent986cdb862e4aafc92a1537e04388898fc42b8bc0
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>
fs/gfs2/inode.c