summaryrefslogtreecommitdiff
path: root/fs/proc
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-03-31 15:30:40 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-04-09 14:13:32 -0400
commitee21ed0afc2f47007fbd8b22928ecb17316e13e2 (patch)
tree074e4d76d20fac31ab8eb9773749cbf44b789ae1 /fs/proc
parentff9046ac92aa89d5ba3e94515baf172e79bd5395 (diff)
downloadlinux-3.10-ee21ed0afc2f47007fbd8b22928ecb17316e13e2.tar.gz
linux-3.10-ee21ed0afc2f47007fbd8b22928ecb17316e13e2.tar.bz2
linux-3.10-ee21ed0afc2f47007fbd8b22928ecb17316e13e2.zip
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.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c
index 6bce60703c7..51fcb201e28 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,
return rv;
}
-static ssize_t
-proc_file_write(struct file *file, const char __user *buffer,
- size_t count, loff_t *ppos)
-{
- struct proc_dir_entry *pde = PDE(file_inode(file));
- ssize_t rv = -EIO;
-
- if (pde->write_proc) {
- spin_lock(&pde->pde_unload_lock);
- if (!pde->proc_fops) {
- spin_unlock(&pde->pde_unload_lock);
- return rv;
- }
- pde->pde_users++;
- spin_unlock(&pde->pde_unload_lock);
-
- /* FIXME: does this routine need ppos? probably... */
- rv = pde->write_proc(file, buffer, count, pde->data);
- pde_users_dec(pde);
- }
- return rv;
-}
-
-
static loff_t
proc_file_lseek(struct file *file, loff_t offset, int orig)
{
@@ -239,7 +215,6 @@ proc_file_lseek(struct file *file, loff_t offset, int orig)
static const struct file_operations proc_file_operations = {
.llseek = proc_file_lseek,
.read = proc_file_read,
- .write = proc_file_write,
};
static int proc_notify_change(struct dentry *dentry, struct iattr *iattr)