Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Snajdr <[email protected]>
  • Loading branch information
snajpa committed Oct 31, 2024
1 parent 9107875 commit 4ea6462
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions module/os/linux/zfs/zfs_znode_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,6 @@ zfs_mknode(znode_t *dzp, vattr_t *vap, dmu_tx_t *tx, cred_t *cr,

(*zpp)->z_sa_hdl = sa_hdl;
}
zhold(*zpp);

(*zpp)->z_pflags = pflags;
(*zpp)->z_mode = ZTOI(*zpp)->i_mode = mode;
Expand Down Expand Up @@ -1132,7 +1131,6 @@ zfs_zget(zfsvfs_t *zfsvfs, uint64_t obj_num, znode_t **zpp)
err = SET_ERROR(ENOENT);
} else {
*zpp = zp;
zhold(*zpp);
VERIFY0(insert_inode_locked(ZTOI(zp)));
unlock_new_inode(ZTOI(zp));
}
Expand Down
2 changes: 0 additions & 2 deletions module/os/linux/zfs/zpl_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -783,8 +783,6 @@ zpl_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)

crhold(cr);
zpl_inode_set_ctime_to_ts(ZTOI(zp), current_time(ZTOI(zp)));
/* Must have an existing ref, so igrab() cannot return NULL */
zhold(zp);

cookie = spl_fstrans_mark();
error = -zfs_link(ITOZ(dir), zp, dname(dentry), cr, 0);
Expand Down

0 comments on commit 4ea6462

Please sign in to comment.