* [PATCH net-2.6.26 1/4][SCTP]: Use proc_create to setup de->proc_fops.
@ 2008-02-29 13:42 Pavel Emelyanov
2008-02-29 19:26 ` David Miller
2008-02-29 19:37 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Pavel Emelyanov @ 2008-02-29 13:42 UTC (permalink / raw)
To: David Miller; +Cc: Linux Netdev List, Wang Chen
In addition to commit 160f17 use proc_create in two more places.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
---
diff --git a/net/sctp/proc.c b/net/sctp/proc.c
index 9e214da..973f1db 100644
--- a/net/sctp/proc.c
+++ b/net/sctp/proc.c
@@ -256,12 +256,10 @@ int __init sctp_eps_proc_init(void)
{
struct proc_dir_entry *p;
- p = create_proc_entry("eps", S_IRUGO, proc_net_sctp);
+ p = proc_create("eps", S_IRUGO, proc_net_sctp, &sctp_eps_seq_fops);
if (!p)
return -ENOMEM;
- p->proc_fops = &sctp_eps_seq_fops;
-
return 0;
}
@@ -367,12 +365,11 @@ int __init sctp_assocs_proc_init(void)
{
struct proc_dir_entry *p;
- p = create_proc_entry("assocs", S_IRUGO, proc_net_sctp);
+ p = proc_create("assocs", S_IRUGO, proc_net_sctp,
+ &sctp_assocs_seq_fops);
if (!p)
return -ENOMEM;
- p->proc_fops = &sctp_assocs_seq_fops;
-
return 0;
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-2.6.26 1/4][SCTP]: Use proc_create to setup de->proc_fops.
2008-02-29 13:42 [PATCH net-2.6.26 1/4][SCTP]: Use proc_create to setup de->proc_fops Pavel Emelyanov
@ 2008-02-29 19:26 ` David Miller
2008-02-29 19:37 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2008-02-29 19:26 UTC (permalink / raw)
To: xemul; +Cc: netdev, wangchen
From: Pavel Emelyanov <xemul@openvz.org>
Date: Fri, 29 Feb 2008 16:42:45 +0300
> In addition to commit 160f17 use proc_create in two more places.
>
> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Applied to net-2.6
Please please please, when referencing commits DO NOT provide
only the SHA ID, provide the headline of the commit log as
well because when patches move around trees the IDs change.
I do this for a lot of people lately, please help lessen my
load by taking care of this yourselves.
For example, the new commit log for this change here is now:
[SCTP]: Use proc_create to setup de->proc_fops.
In addition to commit 160f17 ("[SCTP]: Use proc_create() to setup
->proc_fops first") use proc_create in two more places.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-2.6.26 1/4][SCTP]: Use proc_create to setup de->proc_fops.
2008-02-29 13:42 [PATCH net-2.6.26 1/4][SCTP]: Use proc_create to setup de->proc_fops Pavel Emelyanov
2008-02-29 19:26 ` David Miller
@ 2008-02-29 19:37 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2008-02-29 19:37 UTC (permalink / raw)
To: xemul; +Cc: netdev, wangchen
From: Pavel Emelyanov <xemul@openvz.org>
Date: Fri, 29 Feb 2008 16:42:45 +0300
> In addition to commit 160f17 use proc_create in two more places.
>
> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
BTW, I put this into net-2.6 instead of net-2.6.26 because
this is a bug fix which could easily trigger an OOPS.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-02-29 19:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-29 13:42 [PATCH net-2.6.26 1/4][SCTP]: Use proc_create to setup de->proc_fops Pavel Emelyanov
2008-02-29 19:26 ` David Miller
2008-02-29 19:37 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).