Details : When the user sets quota on root, llog will be affected and can't
create files and write files.
+Severity : normal
+Frequency : Always on ia64 patchless client, and possibly others.
+Bugzilla : 12826
+Description: Add EXPORT_SYMBOL check for node_to_cpumask symbol.
+Details : This allows the patchless client to be loaded on architectures
+ without this export.
+
--------------------------------------------------------------------------------
2007-08-27 Cluster File Systems, Inc. <info@clusterfs.com>
])
])
+# The actual symbol exported varies among architectures, so we need
+# to check many symbols (but only in the current architecture.) No
+# matter what symbol is exported, the kernel #defines node_to_cpumask
+# to the appropriate function and that's what we use.
+AC_DEFUN([LC_EXPORT_NODE_TO_CPUMASK],
+ [LB_LINUX_ARCH
+ LB_CHECK_SYMBOL_EXPORT([node_to_cpumask],
+ [arch/$LINUX_ARCH/mm/numa.c],
+ [AC_DEFINE(HAVE_NODE_TO_CPUMASK, 1,
+ [node_to_cpumask is exported by
+ the kernel])]) # x86_64
+ LB_CHECK_SYMBOL_EXPORT([node_to_cpu_mask],
+ [arch/$LINUX_ARCH/kernel/smpboot.c],
+ [AC_DEFINE(HAVE_NODE_TO_CPUMASK, 1,
+ [node_to_cpumask is exported by
+ the kernel])]) # ia64
+ LB_CHECK_SYMBOL_EXPORT([node_2_cpu_mask],
+ [arch/$LINUX_ARCH/kernel/smpboot.c],
+ [AC_DEFINE(HAVE_NODE_TO_CPUMASK, 1,
+ [node_to_cpumask is exported by
+ the kernel])]) # i386
+ ])
+
#
# LC_VFS_INTENT_PATCHES
#
LC_CONFIG_HEALTH_CHECK_WRITE
LC_TASK_PPTR
-# RHEL4 pachess
+# RHEL4 patches
LC_EXPORT_TRUNCATE_COMPLETE
LC_EXPORT_D_REHASH_COND
LC_EXPORT___D_REHASH
+LC_EXPORT_NODE_TO_CPUMASK
LC_STRUCT_KIOBUF
LC_FUNC_COND_RESCHED
ptlrpc_daemonize(data->name);
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,9) && defined(CONFIG_NUMA)
+#if defined(HAVE_NODE_TO_CPUMASK) && defined(CONFIG_NUMA)
/* we need to do this before any per-thread allocation is done so that
* we get the per-thread allocations on local node. bug 7342 */
if (svc->srv_cpu_affinity) {