summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorPavel Snajdr <[email protected]>2019-11-11 18:34:21 +0100
committerBrian Behlendorf <[email protected]>2019-11-11 09:34:21 -0800
commit5a6ac4cffcd0255ca6f730bcf356e12891fd18af (patch)
tree7498ba3b34fdca3c211b4b8bb79557eaaf413a40 /config
parentf15d6a54575567c6d69b6f1ffc000d2df5a8f206 (diff)
Remove zpl_revalidate
This patch removes the need for zpl_revalidate altogether. There were 3 main reasons why we used d_revalidate: 1. periodic automounted snapshots umount deferral 2. negative dentries created before snapshot rollback 3. stale inodes referenced by dentry cache after snapshot rollback Periodic snapshots deferral solution introduces zfs_exit_fs function, which is called as a part of ZFS_EXIT(zfsvfs_t) macro. Negative dentries and stale inodes are solved by flushing the dcache for the particular dataset on zfs_resume_fs call. This patch also removes now unused HAVE_S_D_OP configure test. Reviewed-by: Aleksa Sarai <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Pavel Snajdr <[email protected]> Closes #8774 Closes #9549
Diffstat (limited to 'config')
-rw-r--r--config/kernel-dentry-operations.m425
1 files changed, 0 insertions, 25 deletions
diff --git a/config/kernel-dentry-operations.m4 b/config/kernel-dentry-operations.m4
index 2dfd2ac55..de7482801 100644
--- a/config/kernel-dentry-operations.m4
+++ b/config/kernel-dentry-operations.m4
@@ -150,29 +150,6 @@ AC_DEFUN([ZFS_AC_KERNEL_CONST_DENTRY_OPERATIONS], [
])
])
-dnl #
-dnl # 2.6.38 API change
-dnl # Added sb->s_d_op default dentry_operations member
-dnl #
-AC_DEFUN([ZFS_AC_KERNEL_SRC_S_D_OP], [
- ZFS_LINUX_TEST_SRC([super_block_s_d_op], [
- #include <linux/fs.h>
- ],[
- struct super_block sb __attribute__ ((unused));
- sb.s_d_op = NULL;
- ])
-])
-
-AC_DEFUN([ZFS_AC_KERNEL_S_D_OP], [
- AC_MSG_CHECKING([whether super_block has s_d_op])
- ZFS_LINUX_TEST_RESULT([super_block_s_d_op], [
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_S_D_OP, 1, [struct super_block has s_d_op])
- ], [
- AC_MSG_RESULT(no)
- ])
-])
-
AC_DEFUN([ZFS_AC_KERNEL_SRC_DENTRY], [
ZFS_AC_KERNEL_SRC_D_MAKE_ROOT
ZFS_AC_KERNEL_SRC_D_OBTAIN_ALIAS
@@ -180,7 +157,6 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_DENTRY], [
ZFS_AC_KERNEL_SRC_D_SET_D_OP
ZFS_AC_KERNEL_SRC_D_REVALIDATE_NAMEIDATA
ZFS_AC_KERNEL_SRC_CONST_DENTRY_OPERATIONS
- ZFS_AC_KERNEL_SRC_S_D_OP
])
AC_DEFUN([ZFS_AC_KERNEL_DENTRY], [
@@ -190,5 +166,4 @@ AC_DEFUN([ZFS_AC_KERNEL_DENTRY], [
ZFS_AC_KERNEL_D_SET_D_OP
ZFS_AC_KERNEL_D_REVALIDATE_NAMEIDATA
ZFS_AC_KERNEL_CONST_DENTRY_OPERATIONS
- ZFS_AC_KERNEL_S_D_OP
])