diff options
author | wangweidong <wangweidong1@huawei.com> | 2014-01-21 02:44:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-21 21:40:40 -0500 |
commit | 79b91130a2679ea5063d49c021d97346a09eb0a5 (patch) | |
tree | c529035c6a148ea9c407326f0ba5d29b9ab69e7d /net/sctp/proc.c | |
parent | 940287ee10e270b78fbda6c44eaa1def5fde897d (diff) |
sctp: remove macros sctp_local_bh_{disable|enable}
Redefined local_bh_{disable|enable} to sctp_local_bh_{disable|enable}
for user space friendly code which we haven't use in years, so removing them.
Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/proc.c')
-rw-r--r-- | net/sctp/proc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/sctp/proc.c b/net/sctp/proc.c index 63ba0bdc867a..0947f1e15eb8 100644 --- a/net/sctp/proc.c +++ b/net/sctp/proc.c | |||
@@ -218,7 +218,7 @@ static int sctp_eps_seq_show(struct seq_file *seq, void *v) | |||
218 | return -ENOMEM; | 218 | return -ENOMEM; |
219 | 219 | ||
220 | head = &sctp_ep_hashtable[hash]; | 220 | head = &sctp_ep_hashtable[hash]; |
221 | sctp_local_bh_disable(); | 221 | local_bh_disable(); |
222 | read_lock(&head->lock); | 222 | read_lock(&head->lock); |
223 | sctp_for_each_hentry(epb, &head->chain) { | 223 | sctp_for_each_hentry(epb, &head->chain) { |
224 | ep = sctp_ep(epb); | 224 | ep = sctp_ep(epb); |
@@ -235,7 +235,7 @@ static int sctp_eps_seq_show(struct seq_file *seq, void *v) | |||
235 | seq_printf(seq, "\n"); | 235 | seq_printf(seq, "\n"); |
236 | } | 236 | } |
237 | read_unlock(&head->lock); | 237 | read_unlock(&head->lock); |
238 | sctp_local_bh_enable(); | 238 | local_bh_enable(); |
239 | 239 | ||
240 | return 0; | 240 | return 0; |
241 | } | 241 | } |
@@ -326,7 +326,7 @@ static int sctp_assocs_seq_show(struct seq_file *seq, void *v) | |||
326 | return -ENOMEM; | 326 | return -ENOMEM; |
327 | 327 | ||
328 | head = &sctp_assoc_hashtable[hash]; | 328 | head = &sctp_assoc_hashtable[hash]; |
329 | sctp_local_bh_disable(); | 329 | local_bh_disable(); |
330 | read_lock(&head->lock); | 330 | read_lock(&head->lock); |
331 | sctp_for_each_hentry(epb, &head->chain) { | 331 | sctp_for_each_hentry(epb, &head->chain) { |
332 | assoc = sctp_assoc(epb); | 332 | assoc = sctp_assoc(epb); |
@@ -362,7 +362,7 @@ static int sctp_assocs_seq_show(struct seq_file *seq, void *v) | |||
362 | seq_printf(seq, "\n"); | 362 | seq_printf(seq, "\n"); |
363 | } | 363 | } |
364 | read_unlock(&head->lock); | 364 | read_unlock(&head->lock); |
365 | sctp_local_bh_enable(); | 365 | local_bh_enable(); |
366 | 366 | ||
367 | return 0; | 367 | return 0; |
368 | } | 368 | } |
@@ -446,7 +446,7 @@ static int sctp_remaddr_seq_show(struct seq_file *seq, void *v) | |||
446 | return -ENOMEM; | 446 | return -ENOMEM; |
447 | 447 | ||
448 | head = &sctp_assoc_hashtable[hash]; | 448 | head = &sctp_assoc_hashtable[hash]; |
449 | sctp_local_bh_disable(); | 449 | local_bh_disable(); |
450 | read_lock(&head->lock); | 450 | read_lock(&head->lock); |
451 | rcu_read_lock(); | 451 | rcu_read_lock(); |
452 | sctp_for_each_hentry(epb, &head->chain) { | 452 | sctp_for_each_hentry(epb, &head->chain) { |
@@ -505,7 +505,7 @@ static int sctp_remaddr_seq_show(struct seq_file *seq, void *v) | |||
505 | 505 | ||
506 | rcu_read_unlock(); | 506 | rcu_read_unlock(); |
507 | read_unlock(&head->lock); | 507 | read_unlock(&head->lock); |
508 | sctp_local_bh_enable(); | 508 | local_bh_enable(); |
509 | 509 | ||
510 | return 0; | 510 | return 0; |
511 | 511 | ||