From a4918556bf29fc517fea0320ea9c97dd1842843a Mon Sep 17 00:00:00 2001 From: Pavel Snajdr Date: Wed, 30 Oct 2024 19:03:42 +0100 Subject: [PATCH] wip --- module/os/linux/zfs/zpl_inode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/os/linux/zfs/zpl_inode.c b/module/os/linux/zfs/zpl_inode.c index 47af673c91f..f1c681ca971 100644 --- a/module/os/linux/zfs/zpl_inode.c +++ b/module/os/linux/zfs/zpl_inode.c @@ -321,8 +321,8 @@ zpl_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) error = zpl_init_acl(ip, dir); if (error == 0) { VERIFY0(insert_inode_locked(ip)); - d_mark_tmpfile(file, ip); - d_instantiate(file->f_path.dentry, ip); + inc_nlink(ip); + d_tmpfile(file, ip); unlock_new_inode(ip); } error = finish_open_simple(file, error); @@ -332,8 +332,8 @@ zpl_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) error = zpl_init_acl(ip, dir); if (error == 0) { VERIFY0(insert_inode_locked(ip)); - d_mark_tmpfile(dentry, ip); - d_instantiate(dentry, ip); + inc_nlink(ip); + d_tmpfile(dentry, ip); unlock_new_inode(ip); } #endif