d_instantiate, due to fast transaction committal removing the last
remaining reference before we were all done.
SGI-PV: 953287
SGI-Modid: xfs-linux-melb:xfs-kern:26347a
Signed-off-by: Nathan Scott <nathans@sgi.com>
        tdvp = vn_from_inode(dir);
        vp = vn_from_inode(ip);
 
+       VN_HOLD(vp);
        error = bhv_vop_link(tdvp, vp, dentry, NULL);
-       if (likely(!error)) {
+       if (unlikely(error)) {
+               VN_RELE(vp);
+       } else {
                VMODIFY(tdvp);
-               VN_HOLD(vp);
                xfs_validate_fields(ip, &vattr);
                d_instantiate(dentry, ip);
        }