aboutsummaryrefslogtreecommitdiffstats
path: root/module/os/linux
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2024-08-24 21:09:43 +1000
committerBrian Behlendorf <[email protected]>2024-09-18 11:23:50 -0700
commitde10132c34b0ca4833c3aa182b0c560ca80715f8 (patch)
tree12469e843af55d022bf1e05d6a94433abbd0725a /module/os/linux
parent2de203163d6def1a3bc53fa8c6791c73e6e3fd6f (diff)
config: remove HAVE_TMPFILE
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Tino Reichardt <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #16479
Diffstat (limited to 'module/os/linux')
-rw-r--r--module/os/linux/zfs/zfs_vnops_os.c4
-rw-r--r--module/os/linux/zfs/zpl_inode.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/module/os/linux/zfs/zfs_vnops_os.c b/module/os/linux/zfs/zfs_vnops_os.c
index 7fbee0ab4..7d3a7b8d9 100644
--- a/module/os/linux/zfs/zfs_vnops_os.c
+++ b/module/os/linux/zfs/zfs_vnops_os.c
@@ -3461,9 +3461,9 @@ zfs_link(znode_t *tdzp, znode_t *szp, char *name, cred_t *cr,
boolean_t waited = B_FALSE;
boolean_t is_tmpfile = 0;
uint64_t txg;
-#ifdef HAVE_TMPFILE
+
is_tmpfile = (sip->i_nlink == 0 && (sip->i_state & I_LINKABLE));
-#endif
+
ASSERT(S_ISDIR(ZTOI(tdzp)->i_mode));
if (name == NULL)
diff --git a/module/os/linux/zfs/zpl_inode.c b/module/os/linux/zfs/zpl_inode.c
index 3cd18ac78..e2fe5c3b0 100644
--- a/module/os/linux/zfs/zpl_inode.c
+++ b/module/os/linux/zfs/zpl_inode.c
@@ -238,7 +238,6 @@ zpl_mknod(struct inode *dir, struct dentry *dentry, umode_t mode,
return (error);
}
-#ifdef HAVE_TMPFILE
static int
#ifdef HAVE_TMPFILE_IDMAP
zpl_tmpfile(struct mnt_idmap *userns, struct inode *dir,
@@ -307,7 +306,6 @@ zpl_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode)
return (error);
}
-#endif
static int
zpl_unlink(struct inode *dir, struct dentry *dentry)
@@ -763,9 +761,7 @@ const struct inode_operations zpl_dir_inode_operations = {
#else
.rename = zpl_rename,
#endif
-#ifdef HAVE_TMPFILE
.tmpfile = zpl_tmpfile,
-#endif
.setattr = zpl_setattr,
.getattr = zpl_getattr,
.listxattr = zpl_xattr_list,