LINUX: make d_automount work properly on rhel5 kernels
[openafs.git] / src / afs / LINUX / osi_compat.h
index 322d88f..0314a22 100644 (file)
 # endif
 #endif
 
+#if defined(STRUCT_DENTRY_OPERATIONS_HAS_D_AUTOMOUNT) && !defined(DCACHE_NEED_AUTOMOUNT)
+# define DCACHE_NEED_AUTOMOUNT DMANAGED_AUTOMOUNT
+#endif
+
 #ifdef HAVE_LINUX_STRUCT_VFS_PATH
 typedef struct vfs_path afs_linux_path_t;
 #else