Whamcloud - gitweb
Update from HEAD
authortianying <tianying>
Thu, 15 Jan 2004 08:28:00 +0000 (08:28 +0000)
committertianying <tianying>
Thu, 15 Jan 2004 08:28:00 +0000 (08:28 +0000)
lnet/klnds/socklnd/socklnd_cb.c
lustre/portals/knals/socknal/socknal_cb.c

index 64278c6..985b432 100644 (file)
@@ -2137,7 +2137,11 @@ ksocknal_setup_sock (struct socket *sock)
         int             option;
         struct linger   linger;
 
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
+        sock->sk->sk_allocation = GFP_NOFS;
+#else
         sock->sk->allocation = GFP_NOFS;
+#endif
 
         /* Ensure this socket aborts active sends immediately when we close
          * it. */
index 64278c6..985b432 100644 (file)
@@ -2137,7 +2137,11 @@ ksocknal_setup_sock (struct socket *sock)
         int             option;
         struct linger   linger;
 
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
+        sock->sk->sk_allocation = GFP_NOFS;
+#else
         sock->sk->allocation = GFP_NOFS;
+#endif
 
         /* Ensure this socket aborts active sends immediately when we close
          * it. */