diff options
Diffstat (limited to 'net/unix/garbage.c')
-rw-r--r-- | net/unix/garbage.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/unix/garbage.c b/net/unix/garbage.c index 6d4a9a8de5ef..5a0061d6b9bc 100644 --- a/net/unix/garbage.c +++ b/net/unix/garbage.c | |||
@@ -104,8 +104,8 @@ static struct sock *unix_get_socket(struct file *filp) | |||
104 | * Socket ? | 104 | * Socket ? |
105 | */ | 105 | */ |
106 | if (S_ISSOCK(inode->i_mode)) { | 106 | if (S_ISSOCK(inode->i_mode)) { |
107 | struct socket * sock = SOCKET_I(inode); | 107 | struct socket *sock = SOCKET_I(inode); |
108 | struct sock * s = sock->sk; | 108 | struct sock *s = sock->sk; |
109 | 109 | ||
110 | /* | 110 | /* |
111 | * PF_UNIX ? | 111 | * PF_UNIX ? |
@@ -124,7 +124,7 @@ static struct sock *unix_get_socket(struct file *filp) | |||
124 | void unix_inflight(struct file *fp) | 124 | void unix_inflight(struct file *fp) |
125 | { | 125 | { |
126 | struct sock *s = unix_get_socket(fp); | 126 | struct sock *s = unix_get_socket(fp); |
127 | if(s) { | 127 | if (s) { |
128 | struct unix_sock *u = unix_sk(s); | 128 | struct unix_sock *u = unix_sk(s); |
129 | spin_lock(&unix_gc_lock); | 129 | spin_lock(&unix_gc_lock); |
130 | if (atomic_long_inc_return(&u->inflight) == 1) { | 130 | if (atomic_long_inc_return(&u->inflight) == 1) { |
@@ -141,7 +141,7 @@ void unix_inflight(struct file *fp) | |||
141 | void unix_notinflight(struct file *fp) | 141 | void unix_notinflight(struct file *fp) |
142 | { | 142 | { |
143 | struct sock *s = unix_get_socket(fp); | 143 | struct sock *s = unix_get_socket(fp); |
144 | if(s) { | 144 | if (s) { |
145 | struct unix_sock *u = unix_sk(s); | 145 | struct unix_sock *u = unix_sk(s); |
146 | spin_lock(&unix_gc_lock); | 146 | spin_lock(&unix_gc_lock); |
147 | BUG_ON(list_empty(&u->link)); | 147 | BUG_ON(list_empty(&u->link)); |
@@ -154,7 +154,7 @@ void unix_notinflight(struct file *fp) | |||
154 | 154 | ||
155 | static inline struct sk_buff *sock_queue_head(struct sock *sk) | 155 | static inline struct sk_buff *sock_queue_head(struct sock *sk) |
156 | { | 156 | { |
157 | return (struct sk_buff *) &sk->sk_receive_queue; | 157 | return (struct sk_buff *)&sk->sk_receive_queue; |
158 | } | 158 | } |
159 | 159 | ||
160 | #define receive_queue_for_each_skb(sk, next, skb) \ | 160 | #define receive_queue_for_each_skb(sk, next, skb) \ |
@@ -364,7 +364,7 @@ void unix_gc(void) | |||
364 | */ | 364 | */ |
365 | skb_queue_head_init(&hitlist); | 365 | skb_queue_head_init(&hitlist); |
366 | list_for_each_entry(u, &gc_candidates, link) | 366 | list_for_each_entry(u, &gc_candidates, link) |
367 | scan_children(&u->sk, inc_inflight, &hitlist); | 367 | scan_children(&u->sk, inc_inflight, &hitlist); |
368 | 368 | ||
369 | spin_unlock(&unix_gc_lock); | 369 | spin_unlock(&unix_gc_lock); |
370 | 370 | ||