Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
snajpa committed Oct 31, 2024
1 parent 9f73cf2 commit eb3efbe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions module/os/linux/zfs/zpl_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -786,10 +786,9 @@ zpl_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)

cookie = spl_fstrans_mark();
error = -zfs_link(ITOZ(dir), zp, dname(dentry), cr, 0);
if (error) {
zrele(zp);
if (error)
goto out;
}


d_instantiate(dentry, ZTOI(zp));
out:
Expand Down

0 comments on commit eb3efbe

Please sign in to comment.