diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-03-31 15:30:40 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-04-09 14:13:32 -0400 |
commit | ee21ed0afc2f47007fbd8b22928ecb17316e13e2 (patch) | |
tree | 074e4d76d20fac31ab8eb9773749cbf44b789ae1 /fs/proc | |
parent | ff9046ac92aa89d5ba3e94515baf172e79bd5395 (diff) |
procfs: kill ->write_proc()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/generic.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c index 6bce60703c76..51fcb201e289 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c | |||
@@ -196,30 +196,6 @@ proc_file_read(struct file *file, char __user *buf, size_t nbytes, | |||
196 | return rv; | 196 | return rv; |
197 | } | 197 | } |
198 | 198 | ||
199 | static ssize_t | ||
200 | proc_file_write(struct file *file, const char __user *buffer, | ||
201 | size_t count, loff_t *ppos) | ||
202 | { | ||
203 | struct proc_dir_entry *pde = PDE(file_inode(file)); | ||
204 | ssize_t rv = -EIO; | ||
205 | |||
206 | if (pde->write_proc) { | ||
207 | spin_lock(&pde->pde_unload_lock); | ||
208 | if (!pde->proc_fops) { | ||
209 | spin_unlock(&pde->pde_unload_lock); | ||
210 | return rv; | ||
211 | } | ||
212 | pde->pde_users++; | ||
213 | spin_unlock(&pde->pde_unload_lock); | ||
214 | |||
215 | /* FIXME: does this routine need ppos? probably... */ | ||
216 | rv = pde->write_proc(file, buffer, count, pde->data); | ||
217 | pde_users_dec(pde); | ||
218 | } | ||
219 | return rv; | ||
220 | } | ||
221 | |||
222 | |||
223 | static loff_t | 199 | static loff_t |
224 | proc_file_lseek(struct file *file, loff_t offset, int orig) | 200 | proc_file_lseek(struct file *file, loff_t offset, int orig) |
225 | { | 201 | { |
@@ -239,7 +215,6 @@ proc_file_lseek(struct file *file, loff_t offset, int orig) | |||
239 | static const struct file_operations proc_file_operations = { | 215 | static const struct file_operations proc_file_operations = { |
240 | .llseek = proc_file_lseek, | 216 | .llseek = proc_file_lseek, |
241 | .read = proc_file_read, | 217 | .read = proc_file_read, |
242 | .write = proc_file_write, | ||
243 | }; | 218 | }; |
244 | 219 | ||
245 | static int proc_notify_change(struct dentry *dentry, struct iattr *iattr) | 220 | static int proc_notify_change(struct dentry *dentry, struct iattr *iattr) |