diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-01 20:51:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-01 20:51:54 -0400 |
commit | 20b4fb485227404329e41ad15588afad3df23050 (patch) | |
tree | f3e099f0ab3da8a93b447203e294d2bb22f6dc05 /net/ipv4 | |
parent | b9394d8a657cd3c064fa432aa0905c1b58b38fe9 (diff) | |
parent | ac3e3c5b1164397656df81b9e9ab4991184d3236 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull VFS updates from Al Viro,
Misc cleanups all over the place, mainly wrt /proc interfaces (switch
create_proc_entry to proc_create(), get rid of the deprecated
create_proc_read_entry() in favor of using proc_create_data() and
seq_file etc).
7kloc removed.
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (204 commits)
don't bother with deferred freeing of fdtables
proc: Move non-public stuff from linux/proc_fs.h to fs/proc/internal.h
proc: Make the PROC_I() and PDE() macros internal to procfs
proc: Supply a function to remove a proc entry by PDE
take cgroup_open() and cpuset_open() to fs/proc/base.c
ppc: Clean up scanlog
ppc: Clean up rtas_flash driver somewhat
hostap: proc: Use remove_proc_subtree()
drm: proc: Use remove_proc_subtree()
drm: proc: Use minor->index to label things, not PDE->name
drm: Constify drm_proc_list[]
zoran: Don't print proc_dir_entry data in debug
reiserfs: Don't access the proc_dir_entry in r_open(), r_start() r_show()
proc: Supply an accessor for getting the data from a PDE's parent
airo: Use remove_proc_subtree()
rtl8192u: Don't need to save device proc dir PDE
rtl8187se: Use a dir under /proc/net/r8180/
proc: Add proc_mkdir_data()
proc: Move some bits from linux/proc_fs.h to linux/{of.h,signal.h,tty.h}
proc: Move PDE_NET() to fs/proc/proc_net.c
...
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/ipt_CLUSTERIP.c | 10 | ||||
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 2 | ||||
-rw-r--r-- | net/ipv4/udp.c | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/net/ipv4/netfilter/ipt_CLUSTERIP.c b/net/ipv4/netfilter/ipt_CLUSTERIP.c index 5852b249054f..0b732efd32e2 100644 --- a/net/ipv4/netfilter/ipt_CLUSTERIP.c +++ b/net/ipv4/netfilter/ipt_CLUSTERIP.c | |||
@@ -105,7 +105,7 @@ clusterip_config_entry_put(struct clusterip_config *c) | |||
105 | * functions are also incrementing the refcount on their own, | 105 | * functions are also incrementing the refcount on their own, |
106 | * so it's safe to remove the entry even if it's in use. */ | 106 | * so it's safe to remove the entry even if it's in use. */ |
107 | #ifdef CONFIG_PROC_FS | 107 | #ifdef CONFIG_PROC_FS |
108 | remove_proc_entry(c->pde->name, c->pde->parent); | 108 | proc_remove(c->pde); |
109 | #endif | 109 | #endif |
110 | return; | 110 | return; |
111 | } | 111 | } |
@@ -631,7 +631,7 @@ static int clusterip_proc_open(struct inode *inode, struct file *file) | |||
631 | 631 | ||
632 | if (!ret) { | 632 | if (!ret) { |
633 | struct seq_file *sf = file->private_data; | 633 | struct seq_file *sf = file->private_data; |
634 | struct clusterip_config *c = PDE(inode)->data; | 634 | struct clusterip_config *c = PDE_DATA(inode); |
635 | 635 | ||
636 | sf->private = c; | 636 | sf->private = c; |
637 | 637 | ||
@@ -643,7 +643,7 @@ static int clusterip_proc_open(struct inode *inode, struct file *file) | |||
643 | 643 | ||
644 | static int clusterip_proc_release(struct inode *inode, struct file *file) | 644 | static int clusterip_proc_release(struct inode *inode, struct file *file) |
645 | { | 645 | { |
646 | struct clusterip_config *c = PDE(inode)->data; | 646 | struct clusterip_config *c = PDE_DATA(inode); |
647 | int ret; | 647 | int ret; |
648 | 648 | ||
649 | ret = seq_release(inode, file); | 649 | ret = seq_release(inode, file); |
@@ -657,7 +657,7 @@ static int clusterip_proc_release(struct inode *inode, struct file *file) | |||
657 | static ssize_t clusterip_proc_write(struct file *file, const char __user *input, | 657 | static ssize_t clusterip_proc_write(struct file *file, const char __user *input, |
658 | size_t size, loff_t *ofs) | 658 | size_t size, loff_t *ofs) |
659 | { | 659 | { |
660 | struct clusterip_config *c = PDE(file_inode(file))->data; | 660 | struct clusterip_config *c = PDE_DATA(file_inode(file)); |
661 | #define PROC_WRITELEN 10 | 661 | #define PROC_WRITELEN 10 |
662 | char buffer[PROC_WRITELEN+1]; | 662 | char buffer[PROC_WRITELEN+1]; |
663 | unsigned long nodenum; | 663 | unsigned long nodenum; |
@@ -736,7 +736,7 @@ static void __exit clusterip_tg_exit(void) | |||
736 | { | 736 | { |
737 | pr_info("ClusterIP Version %s unloading\n", CLUSTERIP_VERSION); | 737 | pr_info("ClusterIP Version %s unloading\n", CLUSTERIP_VERSION); |
738 | #ifdef CONFIG_PROC_FS | 738 | #ifdef CONFIG_PROC_FS |
739 | remove_proc_entry(clusterip_procdir->name, clusterip_procdir->parent); | 739 | proc_remove(clusterip_procdir); |
740 | #endif | 740 | #endif |
741 | nf_unregister_hook(&cip_arp_ops); | 741 | nf_unregister_hook(&cip_arp_ops); |
742 | xt_unregister_target(&clusterip_tg_reg); | 742 | xt_unregister_target(&clusterip_tg_reg); |
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index d979657b8a12..719652305a29 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -2583,7 +2583,7 @@ static void tcp_seq_stop(struct seq_file *seq, void *v) | |||
2583 | 2583 | ||
2584 | int tcp_seq_open(struct inode *inode, struct file *file) | 2584 | int tcp_seq_open(struct inode *inode, struct file *file) |
2585 | { | 2585 | { |
2586 | struct tcp_seq_afinfo *afinfo = PDE(inode)->data; | 2586 | struct tcp_seq_afinfo *afinfo = PDE_DATA(inode); |
2587 | struct tcp_iter_state *s; | 2587 | struct tcp_iter_state *s; |
2588 | int err; | 2588 | int err; |
2589 | 2589 | ||
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 3159d16441d0..6abbe6455129 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -2100,7 +2100,7 @@ static void udp_seq_stop(struct seq_file *seq, void *v) | |||
2100 | 2100 | ||
2101 | int udp_seq_open(struct inode *inode, struct file *file) | 2101 | int udp_seq_open(struct inode *inode, struct file *file) |
2102 | { | 2102 | { |
2103 | struct udp_seq_afinfo *afinfo = PDE(inode)->data; | 2103 | struct udp_seq_afinfo *afinfo = PDE_DATA(inode); |
2104 | struct udp_iter_state *s; | 2104 | struct udp_iter_state *s; |
2105 | int err; | 2105 | int err; |
2106 | 2106 | ||