diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-07-18 07:07:44 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-18 07:07:44 -0400 |
commit | b6fcbdb4f283f7ba67cec3cda6be23da8e959031 (patch) | |
tree | 45d72a4a5d0cce9ab2c98321f4d7d122bf982a55 /net/ipv4/fib_trie.c | |
parent | de05c557b24c7dffc6d392e3db120cf11c9f6ae7 (diff) |
proc: consolidate per-net single-release callers
They are symmetrical to single_open ones :)
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_trie.c')
-rw-r--r-- | net/ipv4/fib_trie.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index 6009df238ed9..5cb72786a8af 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c | |||
@@ -2254,19 +2254,12 @@ static int fib_triestat_seq_open(struct inode *inode, struct file *file) | |||
2254 | return single_open_net(inode, file, fib_triestat_seq_show); | 2254 | return single_open_net(inode, file, fib_triestat_seq_show); |
2255 | } | 2255 | } |
2256 | 2256 | ||
2257 | static int fib_triestat_seq_release(struct inode *ino, struct file *f) | ||
2258 | { | ||
2259 | struct seq_file *seq = f->private_data; | ||
2260 | put_net(seq->private); | ||
2261 | return single_release(ino, f); | ||
2262 | } | ||
2263 | |||
2264 | static const struct file_operations fib_triestat_fops = { | 2257 | static const struct file_operations fib_triestat_fops = { |
2265 | .owner = THIS_MODULE, | 2258 | .owner = THIS_MODULE, |
2266 | .open = fib_triestat_seq_open, | 2259 | .open = fib_triestat_seq_open, |
2267 | .read = seq_read, | 2260 | .read = seq_read, |
2268 | .llseek = seq_lseek, | 2261 | .llseek = seq_lseek, |
2269 | .release = fib_triestat_seq_release, | 2262 | .release = single_release_net, |
2270 | }; | 2263 | }; |
2271 | 2264 | ||
2272 | static struct node *fib_trie_get_idx(struct seq_file *seq, loff_t pos) | 2265 | static struct node *fib_trie_get_idx(struct seq_file *seq, loff_t pos) |