aboutsummaryrefslogtreecommitdiffstats
path: root/config/kernel-rename.m4
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2024-08-18 11:37:31 +1000
committerBrian Behlendorf <[email protected]>2024-09-18 11:23:50 -0700
commit30a2907ce9b91907a6b4bfcfdaa6ec53e1a01acf (patch)
treefa82910ee06050cdc62dfb330db7ab9f2021d662 /config/kernel-rename.m4
parent6a00b013856cd261b0a62de6cc0dac5628647bc9 (diff)
config: remove HAVE_RENAME2
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 'config/kernel-rename.m4')
-rw-r--r--config/kernel-rename.m435
1 files changed, 4 insertions, 31 deletions
diff --git a/config/kernel-rename.m4 b/config/kernel-rename.m4
index cbb27082b..d4846a509 100644
--- a/config/kernel-rename.m4
+++ b/config/kernel-rename.m4
@@ -1,24 +1,5 @@
AC_DEFUN([ZFS_AC_KERNEL_SRC_RENAME], [
dnl #
- dnl # 3.9 (to 4.9) API change,
- dnl #
- dnl # A new version of iops->rename() was added (rename2) that takes a flag
- dnl # argument (to support renameat2). However this separate function was
- dnl # merged back into iops->rename() in Linux 4.9.
- dnl #
- ZFS_LINUX_TEST_SRC([inode_operations_rename2], [
- #include <linux/fs.h>
- static int rename2_fn(struct inode *sip, struct dentry *sdp,
- struct inode *tip, struct dentry *tdp,
- unsigned int flags) { return 0; }
-
- static const struct inode_operations
- iops __attribute__ ((unused)) = {
- .rename2 = rename2_fn,
- };
- ],[])
-
- dnl #
dnl # 4.9 API change,
dnl #
dnl # iops->rename2() merged into iops->rename(), and iops->rename() now
@@ -85,21 +66,13 @@ AC_DEFUN([ZFS_AC_KERNEL_RENAME], [
],[
AC_MSG_RESULT(no)
- AC_MSG_CHECKING([whether iops->rename2() exists])
- ZFS_LINUX_TEST_RESULT([inode_operations_rename2], [
+ AC_MSG_CHECKING([whether iops->rename() wants flags])
+ ZFS_LINUX_TEST_RESULT([inode_operations_rename_flags], [
AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_RENAME2, 1, [iops->rename2() exists])
+ AC_DEFINE(HAVE_RENAME_WANTS_FLAGS, 1,
+ [iops->rename() wants flags])
],[
AC_MSG_RESULT(no)
-
- AC_MSG_CHECKING([whether iops->rename() wants flags])
- ZFS_LINUX_TEST_RESULT([inode_operations_rename_flags], [
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_RENAME_WANTS_FLAGS, 1,
- [iops->rename() wants flags])
- ],[
- AC_MSG_RESULT(no)
- ])
])
])
])