Commit 7d877f3b authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

[PATCH] gfp_t: net/*

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent fd4f2df2
...@@ -1210,7 +1210,7 @@ struct security_operations { ...@@ -1210,7 +1210,7 @@ struct security_operations {
int (*socket_shutdown) (struct socket * sock, int how); int (*socket_shutdown) (struct socket * sock, int how);
int (*socket_sock_rcv_skb) (struct sock * sk, struct sk_buff * skb); int (*socket_sock_rcv_skb) (struct sock * sk, struct sk_buff * skb);
int (*socket_getpeersec) (struct socket *sock, char __user *optval, int __user *optlen, unsigned len); int (*socket_getpeersec) (struct socket *sock, char __user *optval, int __user *optlen, unsigned len);
int (*sk_alloc_security) (struct sock *sk, int family, int priority); int (*sk_alloc_security) (struct sock *sk, int family, gfp_t priority);
void (*sk_free_security) (struct sock *sk); void (*sk_free_security) (struct sock *sk);
#endif /* CONFIG_SECURITY_NETWORK */ #endif /* CONFIG_SECURITY_NETWORK */
}; };
......
...@@ -207,7 +207,7 @@ struct sock { ...@@ -207,7 +207,7 @@ struct sock {
struct sk_buff_head sk_write_queue; struct sk_buff_head sk_write_queue;
int sk_wmem_queued; int sk_wmem_queued;
int sk_forward_alloc; int sk_forward_alloc;
unsigned int sk_allocation; gfp_t sk_allocation;
int sk_sndbuf; int sk_sndbuf;
int sk_route_caps; int sk_route_caps;
unsigned long sk_flags; unsigned long sk_flags;
......
...@@ -940,7 +940,7 @@ static struct sk_buff *sock_alloc_send_pskb(struct sock *sk, ...@@ -940,7 +940,7 @@ static struct sk_buff *sock_alloc_send_pskb(struct sock *sk,
int noblock, int *errcode) int noblock, int *errcode)
{ {
struct sk_buff *skb; struct sk_buff *skb;
unsigned int gfp_mask; gfp_t gfp_mask;
long timeo; long timeo;
int err; int err;
......
...@@ -495,7 +495,7 @@ void dccp_send_close(struct sock *sk, const int active) ...@@ -495,7 +495,7 @@ void dccp_send_close(struct sock *sk, const int active)
{ {
struct dccp_sock *dp = dccp_sk(sk); struct dccp_sock *dp = dccp_sk(sk);
struct sk_buff *skb; struct sk_buff *skb;
const unsigned int prio = active ? GFP_KERNEL : GFP_ATOMIC; const gfp_t prio = active ? GFP_KERNEL : GFP_ATOMIC;
skb = alloc_skb(sk->sk_prot->max_header, prio); skb = alloc_skb(sk->sk_prot->max_header, prio);
if (skb == NULL) if (skb == NULL)
......
...@@ -827,7 +827,7 @@ struct netlink_broadcast_data { ...@@ -827,7 +827,7 @@ struct netlink_broadcast_data {
int failure; int failure;
int congested; int congested;
int delivered; int delivered;
unsigned int allocation; gfp_t allocation;
struct sk_buff *skb, *skb2; struct sk_buff *skb, *skb2;
}; };
......
...@@ -768,7 +768,7 @@ static int dummy_socket_getpeersec(struct socket *sock, char __user *optval, ...@@ -768,7 +768,7 @@ static int dummy_socket_getpeersec(struct socket *sock, char __user *optval,
return -ENOPROTOOPT; return -ENOPROTOOPT;
} }
static inline int dummy_sk_alloc_security (struct sock *sk, int family, int priority) static inline int dummy_sk_alloc_security (struct sock *sk, int family, gfp_t priority)
{ {
return 0; return 0;
} }
......
...@@ -262,7 +262,7 @@ static void superblock_free_security(struct super_block *sb) ...@@ -262,7 +262,7 @@ static void superblock_free_security(struct super_block *sb)
} }
#ifdef CONFIG_SECURITY_NETWORK #ifdef CONFIG_SECURITY_NETWORK
static int sk_alloc_security(struct sock *sk, int family, int priority) static int sk_alloc_security(struct sock *sk, int family, gfp_t priority)
{ {
struct sk_security_struct *ssec; struct sk_security_struct *ssec;
...@@ -3380,7 +3380,7 @@ out: ...@@ -3380,7 +3380,7 @@ out:
return err; return err;
} }
static int selinux_sk_alloc_security(struct sock *sk, int family, int priority) static int selinux_sk_alloc_security(struct sock *sk, int family, gfp_t priority)
{ {
return sk_alloc_security(sk, family, priority); return sk_alloc_security(sk, family, priority);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment