#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/sysctl.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
#include <linux/swapctl.h>
+#endif
#include <linux/proc_fs.h>
#include <linux/slab.h>
#include <linux/stat.h>
#define OBD_TIMEOUT 6 /* RPC timeout before recovery/intr */
/* XXX move to /proc/sys/lustre/recovery? */
#define OBD_UPCALL 7 /* path to recovery upcall */
+/* XXX temporary, as we play with sync osts.. */
+#define OBD_SYNCFILTER 8
#define OBD_VARS_SLOT 2
{OBD_RESET, "reset", NULL, 0, 0644, NULL, &obd_sctl_reset},
{OBD_TIMEOUT, "timeout", &obd_timeout, sizeof(int), 0644, NULL, &proc_dointvec},
/* XXX need to lock so we avoid update races with the recovery upcall! */
- {OBD_UPCALL, "recovery_upcall", obd_recovery_upcall, 128, 0644, NULL,
+ {OBD_UPCALL, "upcall", obd_lustre_upcall, 128, 0644, NULL,
&proc_dostring, &sysctl_string },
- { 0 }
+ {OBD_SYNCFILTER, "filter_sync_on_commit", &obd_sync_filter, sizeof(int),
+ 0644, NULL, &proc_dointvec},
+ { 0 }
};
static ctl_table parent_table[] = {