···692692 "inode creation failed %d\n", err);693693 goto error;694694 }695695- err = v9fs_fid_add(dentry, fid);696696- if (err < 0)697697- goto error;695695+ v9fs_fid_add(dentry, fid);698696 d_instantiate(dentry, inode);699697 }700698 return ofid;···828830 inode = NULL;829831 goto error;830832 }831831- result = v9fs_fid_add(dentry, fid);832832- if (result < 0)833833- goto error_iput;833833+ v9fs_fid_add(dentry, fid);834834inst_out:835835 /*836836 * If we had a rename on the server and a parallel lookup···841845 if (!IS_ERR(res))842846 return res;843847 result = PTR_ERR(res);844844-error_iput:845848 iput(inode);846849error:847850 p9_client_clunk(fid);
+7-12
fs/9p/vfs_inode_dotl.c
···333333 /* Now set the ACL based on the default value */334334 v9fs_set_create_acl(inode, fid, dacl, pacl);335335336336- err = v9fs_fid_add(dentry, fid);337337- if (err < 0)338338- goto error;336336+ v9fs_fid_add(dentry, fid);339337 d_instantiate(dentry, inode);340338341339 v9inode = V9FS_I(inode);···451453 err);452454 goto error;453455 }454454- err = v9fs_fid_add(dentry, fid);455455- if (err < 0)456456- goto error;456456+ v9fs_fid_add(dentry, fid);457457 v9fs_set_create_acl(inode, fid, dacl, pacl);458458 d_instantiate(dentry, inode);459459 fid = NULL;460460+ err = 0;460461 } else {461462 /*462463 * Not in cached mode. No need to populate···744747 err);745748 goto error;746749 }747747- err = v9fs_fid_add(dentry, fid);748748- if (err < 0)749749- goto error;750750+ v9fs_fid_add(dentry, fid);750751 d_instantiate(dentry, inode);751752 fid = NULL;753753+ err = 0;752754 } else {753755 /* Not in cached mode. No need to populate inode with stat */754756 inode = v9fs_get_inode(dir->i_sb, S_IFLNK, 0);···896900 goto error;897901 }898902 v9fs_set_create_acl(inode, fid, dacl, pacl);899899- err = v9fs_fid_add(dentry, fid);900900- if (err < 0)901901- goto error;903903+ v9fs_fid_add(dentry, fid);902904 d_instantiate(dentry, inode);903905 fid = NULL;906906+ err = 0;904907 } else {905908 /*906909 * Not in cached mode. No need to populate inode with stat.