#include <linux/sysctl.h>
#include <asm/uaccess.h>
#include <asm/div64.h>
-
-#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0))
-# include <linux/syscalls.h>
-#endif
+#include <linux/syscalls.h>
#include <libcfs/libcfs.h>
#include <libcfs/linux/portals_compat25.h>
#endif
}
-#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,7))
-# define SOCKNAL_WSPACE(sk) sk_stream_wspace(sk)
-# define SOCKNAL_MIN_WSPACE(sk) sk_stream_min_wspace(sk)
-#else
-# define SOCKNAL_WSPACE(sk) tcp_wspace(sk)
-# define SOCKNAL_MIN_WSPACE(sk) (((sk)->sk_sndbuf*8)/10)
-#endif
+#define SOCKNAL_WSPACE(sk) sk_stream_wspace(sk)
+#define SOCKNAL_MIN_WSPACE(sk) sk_stream_min_wspace(sk)
#ifndef CONFIG_SMP
static inline