From 4c2fc69e5583ea2038284e75e7f96a6711dccd6a Mon Sep 17 00:00:00 2001 From: Pavel Snajdr Date: Thu, 31 Oct 2024 04:01:56 +0100 Subject: [PATCH] wip --- module/os/linux/zfs/zfs_znode_os.c | 2 -- module/os/linux/zfs/zpl_inode.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/module/os/linux/zfs/zfs_znode_os.c b/module/os/linux/zfs/zfs_znode_os.c index 1dcff67ca69..9844dbe78c0 100644 --- a/module/os/linux/zfs/zfs_znode_os.c +++ b/module/os/linux/zfs/zfs_znode_os.c @@ -908,7 +908,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; @@ -1139,7 +1138,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)); } diff --git a/module/os/linux/zfs/zpl_inode.c b/module/os/linux/zfs/zpl_inode.c index 396dfcd687a..c95411be608 100644 --- a/module/os/linux/zfs/zpl_inode.c +++ b/module/os/linux/zfs/zpl_inode.c @@ -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);