mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 06:50:12 +00:00
STABLE14-linux-2630-maybe-20090331
LICENSE IPL10
FIXES 124560
hopefully support 2.6.30 when it's released
(cherry picked from commit d0a166bdff
)
This commit is contained in:
parent
7e4acb69f7
commit
761803469f
@ -715,6 +715,7 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
|
||||
LINUX_HAVE_WRITE_BEGIN_AOP
|
||||
LINUX_HAVE_GRAB_CACHE_PAGE_WRITE_BEGIN
|
||||
LINUX_STRUCT_TASK_HAS_CRED
|
||||
LINUX_STRUCT_PROC_DIR_ENTRY_HAS_OWNER
|
||||
LINUX_KMEM_CACHE_INIT
|
||||
LINUX_HAVE_BDI_INIT
|
||||
LINUX_HAVE_KMEM_CACHE_T
|
||||
|
@ -258,7 +258,9 @@ afsproc_init(void)
|
||||
|
||||
entry1->proc_fops = &afs_syscall_fops;
|
||||
|
||||
#if defined(STRUCT_PROC_DIR_ENTRY_HAS_OWNER)
|
||||
entry1->owner = THIS_MODULE;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_KERNEL_LINUX_SEQ_FILE_H
|
||||
entry2 = create_proc_entry(PROC_CELLSERVDB_NAME, 0, openafs_procfs);
|
||||
|
@ -1138,3 +1138,17 @@ _u =_t.cred->uid ;],
|
||||
if test "x$ac_cv_linux_struct_task_has_cred" = "xyes"; then
|
||||
AC_DEFINE([STRUCT_TASK_HAS_CRED], 1, [define if struct task has a cred pointer])
|
||||
fi])
|
||||
|
||||
AC_DEFUN([LINUX_STRUCT_PROC_DIR_ENTRY_HAS_OWNER], [
|
||||
AC_MSG_CHECKING([if struct proc_dir_entry_has_owner])
|
||||
AC_CACHE_VAL([ac_cv_linux_struct_proc_dir_entry_has_owner], [
|
||||
AC_TRY_KBUILD(
|
||||
[#include <linux/proc_fs.h>],
|
||||
[struct proc_dir_entry _p;
|
||||
_p.owner= "";],
|
||||
ac_cv_linux_struct_proc_dir_entry_has_owner=yes,
|
||||
ac_cv_linux_struct_proc_dir_entry_has_owner=no)])
|
||||
AC_MSG_RESULT($ac_cv_linux_struct_proc_dir_entry_has_owner)
|
||||
if test "x$ac_cv_linux_struct_proc_dir_entry_has_owner" = "xyes"; then
|
||||
AC_DEFINE([STRUCT_PROC_DIR_ENTRY_HAS_OWNER], 1, [define if struct proc_dir_entry has an owner member])
|
||||
fi])
|
||||
|
Loading…
Reference in New Issue
Block a user