@@ -110,7 +110,7 @@ static ssize_t srm_env_proc_write(struct file *file, char *buffer,
static const struct proc_ops srm_env_proc_ops = {
.proc_show = srm_env_proc_show,
- .proc_write_buf = srm_env_proc_write,
+ .proc_write = srm_env_proc_write,
};
static int __init
@@ -18,7 +18,7 @@ static ssize_t atags_read(struct file *file, char *buf,
}
static const struct proc_ops atags_proc_ops = {
- .proc_read_buf = atags_read,
+ .proc_read = atags_read,
.proc_lseek = default_llseek,
};
@@ -159,7 +159,7 @@ static ssize_t alignment_proc_write(struct file *file, char *buffer,
static const struct proc_ops alignment_proc_ops = {
.proc_show = alignment_proc_show,
- .proc_write_buf = alignment_proc_write,
+ .proc_write = alignment_proc_write,
};
#endif /* CONFIG_PROC_FS */
@@ -27,7 +27,7 @@ static ssize_t bootinfo_read(struct file *file, char *buf,
}
static const struct proc_ops bootinfo_proc_ops = {
- .proc_read_buf = bootinfo_read,
+ .proc_read = bootinfo_read,
.proc_lseek = default_llseek,
};
@@ -43,7 +43,7 @@ static int page_map_mmap( struct file *file, struct vm_area_struct *vma )
static const struct proc_ops page_map_proc_ops = {
.proc_lseek = page_map_seek,
- .proc_read_buf = page_map_read,
+ .proc_read = page_map_read,
.proc_mmap = page_map_mmap,
};
@@ -156,27 +156,27 @@ static int ppc_rtas_rmo_buf_show(struct seq_file *m, void *v);
static const struct proc_ops ppc_rtas_poweron_proc_ops = {
.proc_show = ppc_rtas_poweron_show,
- .proc_write_buf = ppc_rtas_poweron_write,
+ .proc_write = ppc_rtas_poweron_write,
};
static const struct proc_ops ppc_rtas_progress_proc_ops = {
.proc_show = ppc_rtas_progress_show,
- .proc_write_buf = ppc_rtas_progress_write,
+ .proc_write = ppc_rtas_progress_write,
};
static const struct proc_ops ppc_rtas_clock_proc_ops = {
.proc_show = ppc_rtas_clock_show,
- .proc_write_buf = ppc_rtas_clock_write,
+ .proc_write = ppc_rtas_clock_write,
};
static const struct proc_ops ppc_rtas_tone_freq_proc_ops = {
.proc_show = ppc_rtas_tone_freq_show,
- .proc_write_buf = ppc_rtas_tone_freq_write,
+ .proc_write = ppc_rtas_tone_freq_write,
};
static const struct proc_ops ppc_rtas_tone_volume_proc_ops = {
.proc_show = ppc_rtas_tone_volume_show,
- .proc_write_buf = ppc_rtas_tone_volume_write,
+ .proc_write = ppc_rtas_tone_volume_write,
};
static int ppc_rtas_find_all_sensors(void);
@@ -623,8 +623,8 @@ static const struct rtas_flash_file rtas_flash_files[] = {
.handle = RTAS_FN_IBM_UPDATE_FLASH_64_AND_REBOOT,
.status = &rtas_update_flash_data.status,
.ops.proc_flags = PROC_ENTRY_SHORT_WRITES,
- .ops.proc_read_buf = rtas_flash_read_msg,
- .ops.proc_write_buf = rtas_flash_write,
+ .ops.proc_read = rtas_flash_read_msg,
+ .ops.proc_write = rtas_flash_write,
.ops.proc_write_size = RTAS_BLK_SIZE,
.ops.proc_release = rtas_flash_release,
.ops.proc_lseek = default_llseek,
@@ -634,8 +634,8 @@ static const struct rtas_flash_file rtas_flash_files[] = {
.handle = RTAS_FN_IBM_UPDATE_FLASH_64_AND_REBOOT,
.status = &rtas_update_flash_data.status,
.ops.proc_flags = PROC_ENTRY_SHORT_WRITES,
- .ops.proc_read_buf = rtas_flash_read_num,
- .ops.proc_write_buf = rtas_flash_write,
+ .ops.proc_read = rtas_flash_read_num,
+ .ops.proc_write = rtas_flash_write,
.ops.proc_write_size = RTAS_BLK_SIZE,
.ops.proc_release = rtas_flash_release,
.ops.proc_lseek = default_llseek,
@@ -645,8 +645,8 @@ static const struct rtas_flash_file rtas_flash_files[] = {
.handle = RTAS_FN_IBM_VALIDATE_FLASH_IMAGE,
.status = &rtas_validate_flash_data.status,
.ops.proc_flags = PROC_ENTRY_SHORT_WRITES,
- .ops.proc_read_buf = validate_flash_read,
- .ops.proc_write_buf = validate_flash_write,
+ .ops.proc_read = validate_flash_read,
+ .ops.proc_write = validate_flash_write,
.ops.proc_write_size = VALIDATE_BUF_SIZE,
.ops.proc_release = validate_flash_release,
.ops.proc_lseek = default_llseek,
@@ -655,8 +655,8 @@ static const struct rtas_flash_file rtas_flash_files[] = {
.filename = "powerpc/rtas/" MANAGE_FLASH_NAME,
.handle = RTAS_FN_IBM_MANAGE_FLASH_IMAGE,
.status = &rtas_manage_flash_data.status,
- .ops.proc_read_buf = manage_flash_read,
- .ops.proc_write_buf = manage_flash_write,
+ .ops.proc_read = manage_flash_read,
+ .ops.proc_write = manage_flash_write,
.ops.proc_lseek = default_llseek,
}
};
@@ -351,7 +351,7 @@ static __poll_t rtas_log_poll(struct file *file, poll_table * wait)
}
static const struct proc_ops rtas_log_proc_ops = {
- .proc_read_buf = rtas_log_read,
+ .proc_read = rtas_log_read,
.proc_poll = rtas_log_poll,
.proc_open = rtas_log_open,
.proc_release = rtas_log_release,
@@ -585,7 +585,7 @@ static int vcpudispatch_stats_display(struct seq_file *p, void *v)
static const struct proc_ops vcpudispatch_stats_proc_ops = {
.proc_show = vcpudispatch_stats_display,
- .proc_write_buf = vcpudispatch_stats_write,
+ .proc_write = vcpudispatch_stats_write,
};
static ssize_t vcpudispatch_stats_freq_write(struct file *file,
@@ -620,7 +620,7 @@ static int vcpudispatch_stats_freq_display(struct seq_file *p, void *v)
static const struct proc_ops vcpudispatch_stats_freq_proc_ops = {
.proc_show = vcpudispatch_stats_freq_display,
- .proc_write_buf = vcpudispatch_stats_freq_write,
+ .proc_write = vcpudispatch_stats_freq_write,
};
static int __init vcpudispatch_stats_procfs_init(void)
@@ -797,7 +797,7 @@ static int lparcfg_data(struct seq_file *m, void *v)
}
static const struct proc_ops lparcfg_proc_ops = {
- .proc_write_buf = lparcfg_write,
+ .proc_write = lparcfg_write,
.proc_show = lparcfg_data,
};
@@ -390,7 +390,7 @@ static ssize_t ofdt_write(struct file *file, char *kbuf, size_t count,
}
static const struct proc_ops ofdt_proc_ops = {
- .proc_write_buf = ofdt_write,
+ .proc_write = ofdt_write,
/* what memdup_user_nul() could copy in */
.proc_write_size = KMALLOC_MAX_SIZE - 1,
.proc_lseek = noop_llseek,
@@ -148,7 +148,7 @@ static ssize_t alignment_proc_write(struct file *file,
static const struct proc_ops alignment_proc_ops = {
.proc_show = alignment_proc_show,
- .proc_write_buf = alignment_proc_write,
+ .proc_write = alignment_proc_write,
};
/*
@@ -97,7 +97,7 @@ static ssize_t led_proc_write(struct file *file, char *buf,
static const struct proc_ops led_proc_ops = {
.proc_show = led_proc_show,
- .proc_write_buf = led_proc_write,
+ .proc_write = led_proc_write,
};
#endif
@@ -776,7 +776,7 @@ static ssize_t mconsole_proc_write(struct file *file,
}
static const struct proc_ops mconsole_proc_ops = {
- .proc_write_buf = mconsole_proc_write,
+ .proc_write = mconsole_proc_write,
.proc_lseek = noop_llseek,
};
@@ -47,7 +47,7 @@ static ssize_t exitcode_proc_write(struct file *file,
static const struct proc_ops exitcode_proc_ops = {
.proc_show = exitcode_proc_show,
- .proc_write_buf = exitcode_proc_write,
+ .proc_write = exitcode_proc_write,
};
static int make_proc_exitcode(void)
@@ -410,8 +410,8 @@ static const struct proc_ioctl_arg mtrr_ioctl_args[] = {
static const struct proc_ops mtrr_proc_ops = {
.proc_show = mtrr_seq_show,
.proc_open = mtrr_open,
- .proc_write_buf = mtrr_write,
- .proc_ioctl_buf = mtrr_ioctl,
+ .proc_write = mtrr_write,
+ .proc_ioctl = mtrr_ioctl,
.proc_ioctl_args = mtrr_ioctl_args,
.proc_nr_ioctl_args = ARRAY_SIZE(mtrr_ioctl_args),
.proc_release = mtrr_close,
@@ -280,8 +280,8 @@ static ssize_t proc_write_simdisk(struct file *file, char *buf,
}
static const struct proc_ops simdisk_proc_ops = {
- .proc_read_buf = proc_read_simdisk,
- .proc_write_buf = proc_write_simdisk,
+ .proc_read = proc_read_simdisk,
+ .proc_write = proc_write_simdisk,
.proc_write_size = PAGE_SIZE,
.proc_lseek = default_llseek,
};
@@ -122,7 +122,7 @@ acpi_system_write_wakeup_device(struct file *file,
static const struct proc_ops acpi_system_wakeup_device_proc_ops = {
.proc_show = acpi_system_wakeup_device_seq_show,
- .proc_write_buf = acpi_system_write_wakeup_device,
+ .proc_write = acpi_system_write_wakeup_device,
};
void __init acpi_sleep_proc_init(void)
@@ -694,7 +694,7 @@ static int i8k_proc_show(struct seq_file *seq, void *offset)
static const struct proc_ops i8k_proc_ops = {
.proc_show = i8k_proc_show,
- .proc_ioctl_buf = i8k_ioctl,
+ .proc_ioctl = i8k_ioctl,
.proc_ioctl_args = i8k_ioctl_args,
.proc_nr_ioctl_args = ARRAY_SIZE(i8k_ioctl_args),
};
@@ -957,7 +957,7 @@ static ssize_t pmu_options_proc_write(struct file *file,
static const struct proc_ops pmu_options_proc_ops = {
.proc_show = pmu_options_proc_show,
- .proc_write_buf = pmu_options_proc_write,
+ .proc_write = pmu_options_proc_write,
};
#endif
@@ -235,7 +235,7 @@ static ssize_t debug_level_proc_write(struct file *file,
static const struct proc_ops debug_level_proc_ops = {
.proc_show = debug_level_proc_show,
- .proc_write_buf = debug_level_proc_write,
+ .proc_write = debug_level_proc_write,
};
#endif /* CONFIG_LIBIPW_DEBUG */
@@ -331,10 +331,10 @@ static const struct proc_ioctl_arg proc_bus_pci_ioctl_args[] = {
static const struct proc_ops proc_bus_pci_ops = {
.proc_flags = PROC_ENTRY_SHORT_WRITES,
.proc_lseek = proc_bus_pci_lseek,
- .proc_read_buf = proc_bus_pci_read,
- .proc_write_buf = proc_bus_pci_write,
+ .proc_read = proc_bus_pci_read,
+ .proc_write = proc_bus_pci_write,
.proc_write_size = PCI_CFG_SPACE_EXP_SIZE,
- .proc_ioctl_buf = proc_bus_pci_ioctl,
+ .proc_ioctl = proc_bus_pci_ioctl,
.proc_ioctl_args = proc_bus_pci_ioctl_args,
.proc_nr_ioctl_args = ARRAY_SIZE(proc_bus_pci_ioctl_args),
#ifdef HAVE_PCI_MMAP
@@ -900,7 +900,7 @@ static ssize_t dispatch_proc_write(struct file *file,
static const struct proc_ops dispatch_proc_ops = {
.proc_show = dispatch_proc_show,
- .proc_write_buf = dispatch_proc_write,
+ .proc_write = dispatch_proc_write,
};
/****************************************************************************
@@ -1504,7 +1504,7 @@ static ssize_t lcd_proc_write(struct file *file, char *buf,
static const struct proc_ops lcd_proc_ops = {
.proc_show = lcd_proc_show,
- .proc_write_buf = lcd_proc_write,
+ .proc_write = lcd_proc_write,
};
/* Video-Out */
@@ -1592,7 +1592,7 @@ static ssize_t video_proc_write(struct file *file, char *buf,
static const struct proc_ops video_proc_ops = {
.proc_show = video_proc_show,
- .proc_write_buf = video_proc_write,
+ .proc_write = video_proc_write,
};
/* Fan status */
@@ -1660,7 +1660,7 @@ static ssize_t fan_proc_write(struct file *file, char *buf,
static const struct proc_ops fan_proc_ops = {
.proc_show = fan_proc_show,
- .proc_write_buf = fan_proc_write,
+ .proc_write = fan_proc_write,
};
/* Fan RPM */
@@ -1718,7 +1718,7 @@ static ssize_t keys_proc_write(struct file *file, char *buf,
static const struct proc_ops keys_proc_ops = {
.proc_show = keys_proc_show,
- .proc_write_buf = keys_proc_write,
+ .proc_write = keys_proc_write,
};
static int __maybe_unused version_proc_show(struct seq_file *m, void *v)
@@ -46,7 +46,7 @@ static ssize_t isapnp_proc_bus_read(struct file *file, char *buf,
static const struct proc_ops isapnp_proc_bus_proc_ops = {
.proc_lseek = isapnp_proc_bus_lseek,
- .proc_read_buf = isapnp_proc_bus_read,
+ .proc_read = isapnp_proc_bus_read,
};
static int isapnp_proc_attach_device(struct pnp_dev *dev)
@@ -204,7 +204,7 @@ static ssize_t pnpbios_proc_write(struct file *file, char *buf,
static const struct proc_ops pnpbios_proc_ops = {
.proc_show = pnpbios_proc_show,
- .proc_write_buf = pnpbios_proc_write,
+ .proc_write = pnpbios_proc_write,
};
int pnpbios_interface_attach_device(struct pnp_bios_node *node)
@@ -307,7 +307,7 @@ static ssize_t dasd_stats_proc_write(struct file *file,
static const struct proc_ops dasd_stats_proc_ops = {
.proc_show = dasd_stats_proc_show,
- .proc_write_buf = dasd_stats_proc_write,
+ .proc_write = dasd_stats_proc_write,
};
/*
@@ -386,7 +386,7 @@ static const struct proc_ops cio_ignore_proc_ops = {
.proc_flags = PROC_ENTRY_SHORT_WRITES,
.proc_seq_ops = &cio_ignore_proc_seq_ops,
.proc_state_size = sizeof(struct ccwdev_iter),
- .proc_write_buf = cio_ignore_write,
+ .proc_write = cio_ignore_write,
.proc_write_size = SZ_64K,
};
@@ -1292,7 +1292,7 @@ static ssize_t cio_settle_write(struct file *file, char *buf,
static const struct proc_ops cio_settle_proc_ops = {
.proc_open = nonseekable_open,
- .proc_write_buf = cio_settle_write,
+ .proc_write = cio_settle_write,
};
static int __init cio_settle_init(void)
@@ -653,7 +653,7 @@ static const struct proc_ioctl_arg esas2r_proc_ioctl_args[] = {
static const struct proc_ops esas2r_proc_ops = {
.proc_lseek = default_llseek,
- .proc_ioctl_buf = esas2r_proc_ioctl_buf,
+ .proc_ioctl = esas2r_proc_ioctl_buf,
.proc_ioctl_args = esas2r_proc_ioctl_args,
.proc_nr_ioctl_args = ARRAY_SIZE(esas2r_proc_ioctl_args),
};
@@ -690,7 +690,7 @@ static ssize_t proc_scsi_devinfo_write(struct file *file,
static const struct proc_ops scsi_devinfo_proc_ops = {
.proc_seq_ops = &scsi_devinfo_seq_ops,
- .proc_write_buf = proc_scsi_devinfo_write,
+ .proc_write = proc_scsi_devinfo_write,
.proc_write_size = PAGE_SIZE,
};
#endif /* CONFIG_SCSI_PROC_FS */
@@ -130,7 +130,7 @@ EXPORT_SYMBOL_GPL(scsi_template_proc_dir);
static const struct proc_ops proc_scsi_ops = {
.proc_show = proc_scsi_show,
.proc_open = proc_scsi_host_open,
- .proc_write_buf = proc_scsi_host_write
+ .proc_write = proc_scsi_host_write
};
/**
@@ -495,7 +495,7 @@ static const struct seq_operations scsi_seq_ops = {
static const struct proc_ops scsi_scsi_proc_ops = {
.proc_seq_ops = &scsi_seq_ops,
- .proc_write_buf = proc_scsi_write,
+ .proc_write = proc_scsi_write,
.proc_write_size = PAGE_SIZE,
};
@@ -2292,14 +2292,14 @@ static ssize_t sg_proc_write_adio(struct file *filp, char *buffer,
size_t count, loff_t *off);
static const struct proc_ops adio_proc_ops = {
.proc_show = sg_proc_seq_show_int,
- .proc_write_buf = sg_proc_write_adio,
+ .proc_write = sg_proc_write_adio,
};
static ssize_t sg_proc_write_dressz(struct file *filp,
char *buffer, size_t count, loff_t *off);
static const struct proc_ops dressz_proc_ops = {
.proc_show = sg_proc_seq_show_int,
- .proc_write_buf = sg_proc_write_dressz,
+ .proc_write = sg_proc_write_dressz,
};
static int sg_proc_seq_show_version(struct seq_file *s, void *v);
@@ -1222,7 +1222,7 @@ static ssize_t write_sysrq_trigger(struct file *file, char *buf,
}
static const struct proc_ops sysrq_trigger_proc_ops = {
- .proc_write_buf = write_sysrq_trigger,
+ .proc_write = write_sysrq_trigger,
.proc_lseek = noop_llseek,
};
@@ -1184,7 +1184,7 @@ static ssize_t rndis_proc_write(struct file *file, char *buffer,
static const struct proc_ops rndis_proc_ops = {
.proc_show = rndis_proc_show,
- .proc_write_buf = rndis_proc_write,
+ .proc_write = rndis_proc_write,
};
#define NAME_TEMPLATE "driver/rndis-%03d"
@@ -1168,7 +1168,7 @@ static ssize_t viafb_dvp0_proc_write(struct file *file,
static const struct proc_ops viafb_dvp0_proc_ops = {
.proc_show = viafb_dvp0_proc_show,
- .proc_write_buf = viafb_dvp0_proc_write,
+ .proc_write = viafb_dvp0_proc_write,
};
static int viafb_dvp1_proc_show(struct seq_file *m, void *v)
@@ -1223,7 +1223,7 @@ static ssize_t viafb_dvp1_proc_write(struct file *file,
static const struct proc_ops viafb_dvp1_proc_ops = {
.proc_show = viafb_dvp1_proc_show,
- .proc_write_buf = viafb_dvp1_proc_write,
+ .proc_write = viafb_dvp1_proc_write,
};
static int viafb_dfph_proc_show(struct seq_file *m, void *v)
@@ -1249,7 +1249,7 @@ static ssize_t viafb_dfph_proc_write(struct file *file,
static const struct proc_ops viafb_dfph_proc_ops = {
.proc_show = viafb_dfph_proc_show,
- .proc_write_buf = viafb_dfph_proc_write,
+ .proc_write = viafb_dfph_proc_write,
};
static int viafb_dfpl_proc_show(struct seq_file *m, void *v)
@@ -1275,7 +1275,7 @@ static ssize_t viafb_dfpl_proc_write(struct file *file,
static const struct proc_ops viafb_dfpl_proc_ops = {
.proc_show = viafb_dfpl_proc_show,
- .proc_write_buf = viafb_dfpl_proc_write,
+ .proc_write = viafb_dfpl_proc_write,
};
static int viafb_vt1636_proc_show(struct seq_file *m, void *v)
@@ -1401,7 +1401,7 @@ static ssize_t viafb_vt1636_proc_write(struct file *file,
static const struct proc_ops viafb_vt1636_proc_ops = {
.proc_show = viafb_vt1636_proc_show,
- .proc_write_buf = viafb_vt1636_proc_write,
+ .proc_write = viafb_vt1636_proc_write,
};
#endif /* CONFIG_FB_VIA_DIRECT_PROCFS */
@@ -1469,7 +1469,7 @@ static ssize_t viafb_iga1_odev_proc_write(struct file *file,
static const struct proc_ops viafb_iga1_odev_proc_ops = {
.proc_show = viafb_iga1_odev_proc_show,
- .proc_write_buf = viafb_iga1_odev_proc_write,
+ .proc_write = viafb_iga1_odev_proc_write,
};
static int viafb_iga2_odev_proc_show(struct seq_file *m, void *v)
@@ -1500,7 +1500,7 @@ static ssize_t viafb_iga2_odev_proc_write(struct file *file,
static const struct proc_ops viafb_iga2_odev_proc_ops = {
.proc_show = viafb_iga2_odev_proc_show,
- .proc_write_buf = viafb_iga2_odev_proc_write,
+ .proc_write = viafb_iga2_odev_proc_write,
};
#define IS_VT1636(lvds_chip) ((lvds_chip).lvds_chip_name == VT1636_LVDS)
@@ -57,7 +57,7 @@ proc_bus_zorro_read(struct file *file, char *buf, size_t nbytes, loff_t *ppos)
static const struct proc_ops bus_zorro_proc_ops = {
.proc_lseek = proc_bus_zorro_lseek,
- .proc_read_buf = proc_bus_zorro_read,
+ .proc_read = proc_bus_zorro_read,
};
static void * zorro_seq_start(struct seq_file *m, loff_t *pos)
@@ -37,7 +37,7 @@ static ssize_t jfs_loglevel_proc_write(struct file *file, char *buffer,
static const struct proc_ops jfs_loglevel_proc_ops = {
.proc_show = jfs_loglevel_proc_show,
- .proc_write_buf = jfs_loglevel_proc_write,
+ .proc_write = jfs_loglevel_proc_write,
};
#endif
@@ -55,8 +55,8 @@ nlm_end_grace_read(struct file *file, char *buf, size_t size,
}
static const struct proc_ops lockd_end_grace_proc_ops = {
- .proc_write_buf = nlm_end_grace_write,
- .proc_read_buf = nlm_end_grace_read,
+ .proc_write = nlm_end_grace_write,
+ .proc_read = nlm_end_grace_read,
.proc_lseek = default_llseek,
};
@@ -590,7 +590,7 @@ static const struct proc_ops ntfs3_volinfo_fops = {
static const struct proc_ops ntfs3_label_fops = {
.proc_show = ntfs3_label_show,
- .proc_write_buf = ntfs3_label_write,
+ .proc_write = ntfs3_label_write,
};
static void ntfs_create_procdir(struct super_block *sb)
@@ -471,27 +471,27 @@ static int pde_set_flags(struct proc_dir_entry *pde)
pde->flags |= PROC_ENTRY_proc_release;
if (proc_ops->proc_mmap)
pde->flags |= PROC_ENTRY_proc_mmap;
- if (proc_ops->proc_write_buf) {
- pde->flags |= PROC_ENTRY_proc_write_buf;
+ if (proc_ops->proc_write) {
+ pde->flags |= PROC_ENTRY_proc_write;
pde->write_size = proc_ops->proc_write_size ?: PAGE_SIZE - 1;
if (proc_ops->proc_flags & PROC_ENTRY_SHORT_WRITES)
pde->flags |= PROC_ENTRY_SHORT_WRITES;
}
- if (proc_ops->proc_read_buf) {
+ if (proc_ops->proc_read) {
/* procfs reads through the seq_file itself */
if (WARN_ON_ONCE(pde_is_seq_file(pde)))
return -EINVAL;
- pde->flags |= PROC_ENTRY_proc_read_buf;
+ pde->flags |= PROC_ENTRY_proc_read;
pde->read_size = proc_ops->proc_read_size ?: PAGE_SIZE;
if (proc_ops->proc_flags & PROC_ENTRY_FULL_READS)
pde->flags |= PROC_ENTRY_FULL_READS;
}
- if (proc_ops->proc_ioctl_buf) {
+ if (proc_ops->proc_ioctl) {
/* the table says what procfs copies, see pde_ioctl_arg() */
if (WARN_ON_ONCE(!proc_ops->proc_ioctl_args ||
!proc_ops->proc_nr_ioctl_args))
return -EINVAL;
- pde->flags |= PROC_ENTRY_proc_ioctl_buf;
+ pde->flags |= PROC_ENTRY_proc_ioctl;
} else if (WARN_ON_ONCE(proc_ops->proc_ioctl_args ||
proc_ops->proc_nr_ioctl_args)) {
return -EINVAL;
@@ -428,7 +428,7 @@ static loff_t proc_reg_llseek(struct file *file, loff_t offset, int whence)
* unpinning the entry. A reader that faults on its buffer then doesn't hold
* up remove_proc_entry().
*/
-static ssize_t pde_read_buf(struct proc_dir_entry *pde, struct kiocb *iocb,
+static ssize_t pde_read(struct proc_dir_entry *pde, struct kiocb *iocb,
struct iov_iter *iter)
{
struct file *file = iocb->ki_filp;
@@ -455,7 +455,7 @@ static ssize_t pde_read_buf(struct proc_dir_entry *pde, struct kiocb *iocb,
rv = -EIO;
break;
}
- rv = pde->proc_ops->proc_read_buf(file, buf, count, &pos);
+ rv = pde->proc_ops->proc_read(file, buf, count, &pos);
pde_unpin(pde);
if (rv <= 0)
break;
@@ -484,8 +484,8 @@ static ssize_t proc_reg_read_iter(struct kiocb *iocb, struct iov_iter *iter)
/* procfs reads through the seq_file itself, see pde_seq_start() */
if (pde_is_seq_file(pde))
return seq_read_iter(iocb, iter);
- if (pde_has_proc_read_buf(pde))
- return pde_read_buf(pde, iocb, iter);
+ if (pde_has_proc_read(pde))
+ return pde_read(pde, iocb, iter);
return -EIO;
}
@@ -493,7 +493,7 @@ static ssize_t proc_reg_read_iter(struct kiocb *iocb, struct iov_iter *iter)
* procfs copies in what is written before it pins the entry. A writer that
* faults on its buffer then doesn't hold up remove_proc_entry().
*/
-static ssize_t pde_write_buf(struct proc_dir_entry *pde, struct file *file,
+static ssize_t pde_write(struct proc_dir_entry *pde, struct file *file,
const char __user *ubuf, size_t count, loff_t *ppos)
{
char *buf __free(kvfree) = NULL;
@@ -515,7 +515,7 @@ static ssize_t pde_write_buf(struct proc_dir_entry *pde, struct file *file,
if (!pde_pin(pde))
return -EIO;
- rv = pde->proc_ops->proc_write_buf(file, buf, count, ppos);
+ rv = pde->proc_ops->proc_write(file, buf, count, ppos);
pde_unpin(pde);
return rv;
}
@@ -524,8 +524,8 @@ static ssize_t proc_reg_write(struct file *file, const char __user *buf, size_t
{
struct proc_dir_entry *pde = PDE(file_inode(file));
- if (pde_has_proc_write_buf(pde))
- return pde_write_buf(pde, file, buf, count, ppos);
+ if (pde_has_proc_write(pde))
+ return pde_write(pde, file, buf, count, ppos);
return -EIO;
}
@@ -594,7 +594,7 @@ static bool pde_ioctl_arg(struct proc_dir_entry *pde, unsigned int cmd,
* out after unpinning it. An ioctl that faults on its argument then doesn't
* hold up remove_proc_entry().
*/
-static long pde_ioctl_buf(struct proc_dir_entry *pde, struct file *file,
+static long pde_ioctl(struct proc_dir_entry *pde, struct file *file,
unsigned int cmd, void __user *uarg, unsigned long arg)
{
void *buf __free(kvfree) = NULL;
@@ -615,7 +615,7 @@ static long pde_ioctl_buf(struct proc_dir_entry *pde, struct file *file,
if (!pde_pin(pde))
return -ENOTTY;
- rv = pde->proc_ops->proc_ioctl_buf(file, cmd, buf ?: (void *)arg);
+ rv = pde->proc_ops->proc_ioctl(file, cmd, buf ?: (void *)arg);
pde_unpin(pde);
if (rv >= 0 && a.out && copy_to_user(uarg, buf, a.out))
return -EFAULT;
@@ -626,8 +626,8 @@ static long proc_reg_unlocked_ioctl(struct file *file, unsigned int cmd, unsigne
{
struct proc_dir_entry *pde = PDE(file_inode(file));
- if (pde_has_proc_ioctl_buf(pde))
- return pde_ioctl_buf(pde, file, cmd, (void __user *)arg, arg);
+ if (pde_has_proc_ioctl(pde))
+ return pde_ioctl(pde, file, cmd, (void __user *)arg, arg);
return -ENOTTY;
}
@@ -636,8 +636,8 @@ static long proc_reg_compat_ioctl(struct file *file, unsigned int cmd, unsigned
{
struct proc_dir_entry *pde = PDE(file_inode(file));
- if (pde_has_proc_ioctl_buf(pde))
- return pde_ioctl_buf(pde, file, cmd, compat_ptr(arg), arg);
+ if (pde_has_proc_ioctl(pde))
+ return pde_ioctl(pde, file, cmd, compat_ptr(arg), arg);
return -ENOTTY;
}
#else
@@ -118,9 +118,9 @@ static inline bool pde_has_proc_show(const struct proc_dir_entry *pde)
return pde->flags & PROC_ENTRY_proc_show;
}
-static inline bool pde_has_proc_write_buf(const struct proc_dir_entry *pde)
+static inline bool pde_has_proc_write(const struct proc_dir_entry *pde)
{
- return pde->flags & PROC_ENTRY_proc_write_buf;
+ return pde->flags & PROC_ENTRY_proc_write;
}
static inline bool pde_has_short_writes(const struct proc_dir_entry *pde)
@@ -128,9 +128,9 @@ static inline bool pde_has_short_writes(const struct proc_dir_entry *pde)
return pde->flags & PROC_ENTRY_SHORT_WRITES;
}
-static inline bool pde_has_proc_read_buf(const struct proc_dir_entry *pde)
+static inline bool pde_has_proc_read(const struct proc_dir_entry *pde)
{
- return pde->flags & PROC_ENTRY_proc_read_buf;
+ return pde->flags & PROC_ENTRY_proc_read;
}
static inline bool pde_has_full_reads(const struct proc_dir_entry *pde)
@@ -138,9 +138,9 @@ static inline bool pde_has_full_reads(const struct proc_dir_entry *pde)
return pde->flags & PROC_ENTRY_FULL_READS;
}
-static inline bool pde_has_proc_ioctl_buf(const struct proc_dir_entry *pde)
+static inline bool pde_has_proc_ioctl(const struct proc_dir_entry *pde)
{
- return pde->flags & PROC_ENTRY_proc_ioctl_buf;
+ return pde->flags & PROC_ENTRY_proc_ioctl;
}
static inline bool pde_has_proc_poll(const struct proc_dir_entry *pde)
@@ -77,7 +77,7 @@ static int seq_release_net(struct inode *ino, struct file *f)
static const struct proc_ops proc_net_seq_ops = {
.proc_open = seq_open_net,
- .proc_write_buf = proc_simple_write,
+ .proc_write = proc_simple_write,
.proc_release = seq_release_net,
};
@@ -186,7 +186,7 @@ static int single_release_net(struct inode *ino, struct file *f)
static const struct proc_ops proc_net_single_ops = {
.proc_open = single_open_net,
- .proc_write_buf = proc_simple_write,
+ .proc_write = proc_simple_write,
.proc_release = single_release_net,
};
@@ -718,7 +718,7 @@ static const struct proc_ops vmcore_proc_ops = {
.proc_flags = PROC_ENTRY_FULL_READS,
.proc_open = open_vmcore,
.proc_release = release_vmcore,
- .proc_read_buf = read_vmcore,
+ .proc_read = read_vmcore,
.proc_read_size = SZ_128K,
.proc_lseek = default_llseek,
.proc_mmap = mmap_vmcore,
@@ -390,7 +390,7 @@ static ssize_t cifs_debug_dirs_proc_write(struct file *file, char *buffer,
static const struct proc_ops cifs_debug_dirs_proc_ops = {
.proc_show = cifs_debug_dirs_proc_show,
- .proc_write_buf = cifs_debug_dirs_proc_write,
+ .proc_write = cifs_debug_dirs_proc_write,
};
#endif /* CONFIG_CIFS_DEBUG */
@@ -854,7 +854,7 @@ static int cifs_stats_proc_show(struct seq_file *m, void *v)
static const struct proc_ops cifs_stats_proc_ops = {
.proc_show = cifs_stats_proc_show,
- .proc_write_buf = cifs_stats_proc_write,
+ .proc_write = cifs_stats_proc_write,
};
#ifdef CONFIG_CIFS_SMB_DIRECT
@@ -876,7 +876,7 @@ static int name##_proc_show(struct seq_file *m, void *v) \
\
static const struct proc_ops cifs_##name##_proc_fops = { \
.proc_show = name##_proc_show, \
- .proc_write_buf = name##_write, \
+ .proc_write = name##_write, \
}
PROC_FILE_DEFINE(rdma_readwrite_threshold);
@@ -1008,7 +1008,7 @@ static ssize_t cifsFYI_proc_write(struct file *file, char *buffer,
static const struct proc_ops cifsFYI_proc_ops = {
.proc_show = cifsFYI_proc_show,
- .proc_write_buf = cifsFYI_proc_write,
+ .proc_write = cifsFYI_proc_write,
};
static int cifs_linux_ext_proc_show(struct seq_file *m, void *v)
@@ -1031,7 +1031,7 @@ static ssize_t cifs_linux_ext_proc_write(struct file *file, char *buffer,
static const struct proc_ops cifs_linux_ext_proc_ops = {
.proc_show = cifs_linux_ext_proc_show,
- .proc_write_buf = cifs_linux_ext_proc_write,
+ .proc_write = cifs_linux_ext_proc_write,
};
static int cifs_lookup_cache_proc_show(struct seq_file *m, void *v)
@@ -1054,7 +1054,7 @@ static ssize_t cifs_lookup_cache_proc_write(struct file *file, char *buffer,
static const struct proc_ops cifs_lookup_cache_proc_ops = {
.proc_show = cifs_lookup_cache_proc_show,
- .proc_write_buf = cifs_lookup_cache_proc_write,
+ .proc_write = cifs_lookup_cache_proc_write,
};
static int traceSMB_proc_show(struct seq_file *m, void *v)
@@ -1077,7 +1077,7 @@ static ssize_t traceSMB_proc_write(struct file *file, char *buffer,
static const struct proc_ops traceSMB_proc_ops = {
.proc_show = traceSMB_proc_show,
- .proc_write_buf = traceSMB_proc_write,
+ .proc_write = traceSMB_proc_write,
};
static int cifs_security_flags_proc_show(struct seq_file *m, void *v)
@@ -1166,7 +1166,7 @@ static ssize_t cifs_security_flags_proc_write(struct file *file,
static const struct proc_ops cifs_security_flags_proc_ops = {
.proc_show = cifs_security_flags_proc_show,
- .proc_write_buf = cifs_security_flags_proc_write,
+ .proc_write = cifs_security_flags_proc_write,
};
/* To make it easier to debug, can help to show mount params */
@@ -208,7 +208,7 @@ static ssize_t dfscache_proc_write(struct file *file, char *buffer,
const struct proc_ops dfscache_proc_ops = {
.proc_show = dfscache_proc_show,
- .proc_write_buf = dfscache_proc_write,
+ .proc_write = dfscache_proc_write,
};
#ifdef CONFIG_CIFS_DEBUG2
@@ -33,21 +33,21 @@ enum {
PROC_ENTRY_proc_show = 1U << 5,
PROC_ENTRY_FORCE_LOOKUP = 1U << 7,
- PROC_ENTRY_proc_write_buf = 1U << 8,
+ PROC_ENTRY_proc_write = 1U << 8,
/*
* Writes larger than ->proc_write_size come up short instead of
* failing with -EINVAL.
*/
PROC_ENTRY_SHORT_WRITES = 1U << 9,
- PROC_ENTRY_proc_read_buf = 1U << 10,
+ PROC_ENTRY_proc_read = 1U << 10,
/*
* Reads larger than ->proc_read_size are filled in pieces instead of
* coming up short.
*/
PROC_ENTRY_FULL_READS = 1U << 11,
- PROC_ENTRY_proc_ioctl_buf = 1U << 12,
+ PROC_ENTRY_proc_ioctl = 1U << 12,
PROC_ENTRY_proc_poll = 1U << 13,
PROC_ENTRY_proc_release = 1U << 14,
PROC_ENTRY_proc_mmap = 1U << 15,
@@ -55,7 +55,7 @@ enum {
/*
* How many bytes of the argument of @cmd procfs copies in before calling
- * ->proc_ioctl_buf() and copies back out after it. A command that copies
+ * ->proc_ioctl() and copies back out after it. A command that copies
* neither gets its argument as is.
*/
struct proc_ioctl_arg {
@@ -123,26 +123,26 @@ struct proc_ops {
unsigned int proc_state_size;
/*
* procfs copies what is written into a kernel buffer and calls
- * ->proc_write_buf() with it. The buffer is NUL-terminated and holds
+ * ->proc_write() with it. The buffer is NUL-terminated and holds
* at most ->proc_write_size bytes, PAGE_SIZE - 1 if that's 0. Larger
* writes fail with -EINVAL unless the entry asks for
* PROC_ENTRY_SHORT_WRITES. The position is NULL for a stream, like
* for ->write().
*/
- ssize_t (*proc_write_buf)(struct file *, char *, size_t, loff_t *);
+ ssize_t (*proc_write)(struct file *, char *, size_t, loff_t *);
unsigned int proc_write_size;
/*
- * procfs calls ->proc_read_buf() to fill a kernel buffer of at most
+ * procfs calls ->proc_read() to fill a kernel buffer of at most
* ->proc_read_size bytes, PAGE_SIZE if that's 0, and copies it to
* userspace afterwards. Larger reads come up short unless the entry
* asks for PROC_ENTRY_FULL_READS. The position the entry moves to only
* sticks if the copy works.
*/
- ssize_t (*proc_read_buf)(struct file *, char *, size_t, loff_t *);
+ ssize_t (*proc_read)(struct file *, char *, size_t, loff_t *);
unsigned int proc_read_size;
/*
* procfs looks the command up in ->proc_ioctl_args, copies in what it
- * passes before pinning the entry, calls ->proc_ioctl_buf() with that
+ * passes before pinning the entry, calls ->proc_ioctl() with that
* copy and copies out what it returns after unpinning the entry.
* Commands that aren't in the table fail with -ENOTTY. 32-bit tasks
* go through the same table. The copy is zeroed and as large as the
@@ -150,7 +150,7 @@ struct proc_ops {
* succeeded, and a command that copies neither gets its argument as
* is.
*/
- long (*proc_ioctl_buf)(struct file *, unsigned int, void *);
+ long (*proc_ioctl)(struct file *, unsigned int, void *);
const struct proc_ioctl_arg *proc_ioctl_args;
unsigned int proc_nr_ioctl_args;
} __randomize_layout;
@@ -49,7 +49,7 @@ ikconfig_read_current(struct file *file, char *buf,
static const struct proc_ops config_gz_proc_ops = {
.proc_flags = PROC_ENTRY_FULL_READS,
- .proc_read_buf = ikconfig_read_current,
+ .proc_read = ikconfig_read_current,
.proc_lseek = default_llseek,
};
@@ -194,13 +194,13 @@ static ssize_t irq_affinity_list_proc_write(struct file *file,
static const struct proc_ops irq_affinity_proc_ops = {
.proc_show = irq_affinity_proc_show,
- .proc_write_buf = irq_affinity_proc_write,
+ .proc_write = irq_affinity_proc_write,
.proc_write_size = IRQ_AFFINITY_WRITE_SIZE,
};
static const struct proc_ops irq_affinity_list_proc_ops = {
.proc_show = irq_affinity_list_proc_show,
- .proc_write_buf = irq_affinity_list_proc_write,
+ .proc_write = irq_affinity_list_proc_write,
.proc_write_size = IRQ_AFFINITY_WRITE_SIZE,
};
@@ -255,7 +255,7 @@ static ssize_t default_affinity_write(struct file *file,
static const struct proc_ops default_affinity_proc_ops = {
.proc_show = default_affinity_show,
- .proc_write_buf = default_affinity_write,
+ .proc_write = default_affinity_write,
.proc_write_size = IRQ_AFFINITY_WRITE_SIZE,
};
@@ -276,7 +276,7 @@ lstats_write(struct file *file, char *buf, size_t count, loff_t *offs)
static const struct proc_ops lstats_proc_ops = {
.proc_show = lstats_show,
- .proc_write_buf = lstats_write,
+ .proc_write = lstats_write,
};
static int __init init_lstats_procfs(void)
@@ -699,7 +699,7 @@ static int lock_stat_release(struct inode *inode, struct file *file)
static const struct proc_ops lock_stat_proc_ops = {
.proc_seq_ops = &lockstat_ops,
.proc_open = lock_stat_open,
- .proc_write_buf = lock_stat_write,
+ .proc_write = lock_stat_write,
.proc_release = lock_stat_release,
};
#endif /* CONFIG_LOCK_STAT */
@@ -204,8 +204,8 @@ static ssize_t write_profile(struct file *file, char *buf, size_t count,
static const struct proc_ops profile_proc_ops = {
.proc_flags = PROC_ENTRY_PERMANENT | PROC_ENTRY_FULL_READS,
- .proc_read_buf = read_profile,
- .proc_write_buf = write_profile,
+ .proc_read = read_profile,
+ .proc_write = write_profile,
.proc_lseek = default_llseek,
};
@@ -1624,7 +1624,7 @@ static int psi_fop_release(struct inode *inode, struct file *file)
static const struct proc_ops psi_io_proc_ops = {
.proc_flags = PROC_ENTRY_PERMANENT,
.proc_show = psi_io_show,
- .proc_write_buf = psi_io_write,
+ .proc_write = psi_io_write,
.proc_poll = psi_fop_poll,
.proc_release = psi_fop_release,
};
@@ -1632,7 +1632,7 @@ static const struct proc_ops psi_io_proc_ops = {
static const struct proc_ops psi_memory_proc_ops = {
.proc_flags = PROC_ENTRY_PERMANENT,
.proc_show = psi_memory_show,
- .proc_write_buf = psi_memory_write,
+ .proc_write = psi_memory_write,
.proc_poll = psi_fop_poll,
.proc_release = psi_fop_release,
};
@@ -1640,7 +1640,7 @@ static const struct proc_ops psi_memory_proc_ops = {
static const struct proc_ops psi_cpu_proc_ops = {
.proc_flags = PROC_ENTRY_PERMANENT,
.proc_show = psi_cpu_show,
- .proc_write_buf = psi_cpu_write,
+ .proc_write = psi_cpu_write,
.proc_poll = psi_fop_poll,
.proc_release = psi_fop_release,
};
@@ -1660,7 +1660,7 @@ static ssize_t psi_irq_write(struct file *file, char *buf, size_t nbytes,
static const struct proc_ops psi_irq_proc_ops = {
.proc_flags = PROC_ENTRY_PERMANENT,
.proc_show = psi_irq_show,
- .proc_write_buf = psi_irq_write,
+ .proc_write = psi_irq_write,
.proc_poll = psi_fop_poll,
.proc_release = psi_fop_release,
};
@@ -1205,7 +1205,7 @@ static const struct file_operations ddebug_proc_fops = {
static const struct proc_ops proc_fops = {
.proc_seq_ops = &ddebug_proc_seqops,
.proc_state_size = sizeof(struct ddebug_iter),
- .proc_write_buf = ddebug_proc_write_buf,
+ .proc_write = ddebug_proc_write_buf,
.proc_write_size = USER_BUF_PAGE - 1,
};
@@ -461,7 +461,7 @@ static const struct proc_ops allocinfo_proc_ops = {
.proc_state_size = sizeof(struct allocinfo_private),
.proc_open = allocinfo_open,
.proc_release = allocinfo_release,
- .proc_ioctl_buf = allocinfo_ioctl,
+ .proc_ioctl = allocinfo_ioctl,
.proc_ioctl_args = allocinfo_ioctl_args,
.proc_nr_ioctl_args = ARRAY_SIZE(allocinfo_ioctl_args),
};
@@ -34,7 +34,7 @@ static ssize_t proc_dev_atm_read(struct file *file, char *buf,
size_t count, loff_t *pos);
static const struct proc_ops atm_dev_proc_ops = {
- .proc_read_buf = proc_dev_atm_read,
+ .proc_read = proc_dev_atm_read,
.proc_lseek = noop_llseek,
};
@@ -545,7 +545,7 @@ static ssize_t pgctrl_write(struct file *file, char *buf, size_t count,
static const struct proc_ops pktgen_proc_ops = {
.proc_show = pgctrl_show,
- .proc_write_buf = pgctrl_write,
+ .proc_write = pgctrl_write,
};
static int pktgen_if_show(struct seq_file *seq, void *v)
@@ -1829,7 +1829,7 @@ static ssize_t pktgen_if_write(struct file *file, char *user_buffer,
static const struct proc_ops pktgen_if_proc_ops = {
.proc_show = pktgen_if_show,
- .proc_write_buf = pktgen_if_write,
+ .proc_write = pktgen_if_write,
};
static int pktgen_thread_show(struct seq_file *seq, void *v)
@@ -1958,7 +1958,7 @@ static ssize_t pktgen_thread_write(struct file *file, char *user_buffer,
static const struct proc_ops pktgen_thread_proc_ops = {
.proc_show = pktgen_thread_show,
- .proc_write_buf = pktgen_thread_write,
+ .proc_write = pktgen_thread_write,
};
/* Think find or remove for NN */
@@ -623,7 +623,7 @@ static const struct proc_ops recent_mt_proc_ops = {
.proc_seq_ops = &recent_seq_ops,
.proc_state_size = sizeof(struct recent_iter_state),
.proc_open = recent_seq_open,
- .proc_write_buf = recent_mt_proc_write,
+ .proc_write = recent_mt_proc_write,
};
static int __net_init recent_proc_net_init(struct net *net)
@@ -1456,8 +1456,8 @@ static ssize_t read_gssp(struct file *file, char *buf,
static const struct proc_ops use_gss_proxy_proc_ops = {
.proc_open = nonseekable_open,
- .proc_write_buf = write_gssp,
- .proc_read_buf = read_gssp,
+ .proc_write = write_gssp,
+ .proc_read = read_gssp,
};
static int create_use_gss_proxy_proc_entry(struct net *net)
@@ -1511,7 +1511,7 @@ static ssize_t read_gss_krb5_enctypes(struct file *file, char *buf,
static const struct proc_ops gss_krb5_enctypes_proc_ops = {
.proc_open = nonseekable_open,
- .proc_read_buf = read_gss_krb5_enctypes,
+ .proc_read = read_gss_krb5_enctypes,
};
static int create_krb5_enctypes_proc_entry(struct net *net)
@@ -1610,8 +1610,8 @@ static int cache_release_procfs(struct inode *inode, struct file *filp)
}
static const struct proc_ops cache_channel_proc_ops = {
- .proc_read_buf = cache_read_procfs,
- .proc_write_buf = cache_write_procfs,
+ .proc_read = cache_read_procfs,
+ .proc_write = cache_write_procfs,
.proc_write_size = CACHE_DOWNCALL_MAX,
.proc_poll = cache_poll_procfs,
.proc_open = cache_open_procfs,
@@ -1680,8 +1680,8 @@ static ssize_t write_flush_procfs(struct file *filp, char *buf, size_t count,
static const struct proc_ops cache_flush_proc_ops = {
.proc_open = open_flush_procfs,
- .proc_read_buf = read_flush_procfs,
- .proc_write_buf = write_flush_procfs,
+ .proc_read = read_flush_procfs,
+ .proc_write = write_flush_procfs,
.proc_write_size = CACHE_FLUSH_MAX,
.proc_release = release_flush_procfs,
};
@@ -141,8 +141,8 @@ static ssize_t fifo_read(struct file *file, char *buf,
}
static const struct proc_ops fifo_proc_ops = {
- .proc_read_buf = fifo_read,
- .proc_write_buf = fifo_write,
+ .proc_read = fifo_read,
+ .proc_write = fifo_write,
.proc_lseek = noop_llseek,
};
@@ -136,8 +136,8 @@ static ssize_t fifo_read(struct file *file, char *buf,
}
static const struct proc_ops fifo_proc_ops = {
- .proc_read_buf = fifo_read,
- .proc_write_buf = fifo_write,
+ .proc_read = fifo_read,
+ .proc_write = fifo_write,
.proc_lseek = noop_llseek,
};
@@ -148,8 +148,8 @@ static ssize_t fifo_read(struct file *file, char *buf,
}
static const struct proc_ops fifo_proc_ops = {
- .proc_read_buf = fifo_read,
- .proc_write_buf = fifo_write,
+ .proc_read = fifo_read,
+ .proc_write = fifo_write,
.proc_lseek = noop_llseek,
/* kfifo_from_user() cut a record to what its length byte holds */
.proc_flags = PROC_ENTRY_SHORT_WRITES,
@@ -267,8 +267,8 @@ static const struct proc_ops snd_info_entry_operations =
{
.proc_flags = PROC_ENTRY_SHORT_WRITES | PROC_ENTRY_FULL_READS,
.proc_lseek = snd_info_entry_llseek,
- .proc_read_buf = snd_info_entry_read,
- .proc_write_buf = snd_info_entry_write,
+ .proc_read = snd_info_entry_read,
+ .proc_write = snd_info_entry_write,
.proc_write_size = PAGE_SIZE,
.proc_poll = snd_info_entry_poll,
.proc_mmap = snd_info_entry_mmap,
@@ -393,7 +393,7 @@ static const struct proc_ops snd_info_text_entry_ops =
.proc_show = snd_info_seq_show,
.proc_open = snd_info_text_entry_open,
.proc_release = snd_info_text_entry_release,
- .proc_write_buf = snd_info_text_entry_write,
+ .proc_write = snd_info_text_entry_write,
.proc_write_size = SND_INFO_TEXT_WRITE_MAX,
};
The _buf suffix told them apart from ->proc_write(), ->proc_read() and ->proc_ioctl(), which copied to and from userspace themselves. Those are gone now. So drop the suffix. ->proc_write(), ->proc_read() and ->proc_ioctl() are the methods that work on procfs' buffers from now on, which is what kernfs calls its read and write as well. Done with sed. The flags and helpers in fs/proc that go with them are renamed to match. No functional changes. Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org> --- arch/alpha/kernel/srm_env.c | 2 +- arch/arm/kernel/atags_proc.c | 2 +- arch/arm/mm/alignment.c | 2 +- arch/m68k/kernel/bootinfo_proc.c | 2 +- arch/powerpc/kernel/proc_powerpc.c | 2 +- arch/powerpc/kernel/rtas-proc.c | 10 ++++---- arch/powerpc/kernel/rtas_flash.c | 16 ++++++------- arch/powerpc/kernel/rtasd.c | 2 +- arch/powerpc/platforms/pseries/lpar.c | 4 ++-- arch/powerpc/platforms/pseries/lparcfg.c | 2 +- arch/powerpc/platforms/pseries/reconfig.c | 2 +- arch/sh/mm/alignment.c | 2 +- arch/sparc/kernel/led.c | 2 +- arch/um/drivers/mconsole_kern.c | 2 +- arch/um/kernel/exitcode.c | 2 +- arch/x86/kernel/cpu/mtrr/if.c | 4 ++-- arch/xtensa/platforms/iss/simdisk.c | 4 ++-- drivers/acpi/proc.c | 2 +- drivers/hwmon/dell-smm-hwmon.c | 2 +- drivers/macintosh/via-pmu.c | 2 +- drivers/net/wireless/intel/ipw2x00/libipw_module.c | 2 +- drivers/pci/proc.c | 6 ++--- drivers/platform/x86/lenovo/thinkpad_acpi.c | 2 +- drivers/platform/x86/toshiba_acpi.c | 8 +++---- drivers/pnp/isapnp/proc.c | 2 +- drivers/pnp/pnpbios/proc.c | 2 +- drivers/s390/block/dasd_proc.c | 2 +- drivers/s390/cio/blacklist.c | 2 +- drivers/s390/cio/css.c | 2 +- drivers/scsi/esas2r/esas2r_main.c | 2 +- drivers/scsi/scsi_devinfo.c | 2 +- drivers/scsi/scsi_proc.c | 4 ++-- drivers/scsi/sg.c | 4 ++-- drivers/tty/sysrq.c | 2 +- drivers/usb/gadget/function/rndis.c | 2 +- drivers/video/fbdev/via/viafbdev.c | 14 +++++------ drivers/zorro/proc.c | 2 +- fs/jfs/jfs_debug.c | 2 +- fs/lockd/procfs.c | 4 ++-- fs/ntfs3/super.c | 2 +- fs/proc/generic.c | 12 +++++----- fs/proc/inode.c | 28 +++++++++++----------- fs/proc/internal.h | 12 +++++----- fs/proc/proc_net.c | 4 ++-- fs/proc/vmcore.c | 2 +- fs/smb/client/cifs_debug.c | 16 ++++++------- fs/smb/client/dfs_cache.c | 2 +- include/linux/proc_fs.h | 20 ++++++++-------- kernel/configs.c | 2 +- kernel/irq/proc.c | 6 ++--- kernel/latencytop.c | 2 +- kernel/locking/lockdep_proc.c | 2 +- kernel/profile.c | 4 ++-- kernel/sched/psi.c | 8 +++---- lib/dynamic_debug.c | 2 +- mm/alloc_tag.c | 2 +- net/atm/proc.c | 2 +- net/core/pktgen.c | 6 ++--- net/netfilter/xt_recent.c | 2 +- net/sunrpc/auth_gss/svcauth_gss.c | 6 ++--- net/sunrpc/cache.c | 8 +++---- samples/kfifo/bytestream-example.c | 4 ++-- samples/kfifo/inttype-example.c | 4 ++-- samples/kfifo/record-example.c | 4 ++-- sound/core/info.c | 6 ++--- 65 files changed, 151 insertions(+), 151 deletions(-)