Thanks to shirsch@adelphia.net for mentioning something was added.
====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================
this leaked in, separate delta
====================
fix maxcro defn
#undef INODE_SETATTR_NOT_VOID
#undef STRUCT_INODE_HAS_I_BYTES
#undef STRUCT_INODE_HAS_I_CDEV
+#undef STRUCT_INODE_HAS_I_TRUNCATE_SEM
#undef STRUCT_ADDRESS_SPACE_HAS_PAGE_LOCK
/* glue for RedHat kernel bug */
LINUX_FS_STRUCT_INODE_HAS_I_BYTES
LINUX_FS_STRUCT_ADDRESS_SPACE_HAS_PAGE_LOCK
LINUX_FS_STRUCT_INODE_HAS_I_CDEV
+ LINUX_FS_STRUCT_INODE_HAS_I_TRUNCATE_SEM
LINUX_INODE_SETATTR_RETURN_TYPE
LINUX_NEED_RHCONFIG
LINUX_WHICH_MODULES
if test "x$ac_cv_linux_fs_struct_inode_has_i_cdev" = "xyes"; then
AC_DEFINE(STRUCT_INODE_HAS_I_CDEV)
fi
+ if test "x$ac_cv_linux_fs_struct_inode_has_i_truncate_sem" = "xyes"; then
+ AC_DEFINE(STRUCT_INODE_HAS_I_TRUNCATE_SEM)
+ fi
if test "x$ac_cv_linux_fs_struct_inode_has_i_bytes" = "xyes"; then
AC_DEFINE(STRUCT_INODE_HAS_I_BYTES)
fi
unsigned short i_bytes;
#endif
struct semaphore i_sem;
+#ifdef STRUCT_INODE_HAS_I_TRUNCATE_SEM
+ struct rw_semaphore i_truncate_sem;
+#endif
#if defined(AFS_LINUX24_ENV)
struct semaphore i_zombie;
#else
ac_cv_linux_fs_struct_inode_has_i_cdev=no)])
AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_cdev)
CPPFLAGS="$save_CPPFLAGS"])
+
+AC_DEFUN(LINUX_FS_STRUCT_INODE_HAS_I_TRUNCATE_SEM, [
+AC_MSG_CHECKING(for i_truncate_sem in struct inode)
+save_CPPFLAGS="$CPPFLAGS"
+CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
+AC_CACHE_VAL(ac_cv_linux_fs_struct_inode_has_i_truncate_sem,
+[
+AC_TRY_COMPILE(
+[#include <linux/fs.h>],
+[struct inode _inode;
+printf("%d\n", _inode.i_truncate_sem);],
+ac_cv_linux_fs_struct_inode_has_i_truncate_sem=yes,
+ac_cv_linux_fs_struct_inode_has_i_truncate_sem=no)])
+AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_truncate_sem)
+CPPFLAGS="$save_CPPFLAGS"])