mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
config: remove HAVE_TMPFILE
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16479
This commit is contained in:
@@ -3442,9 +3442,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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user