fld_debugfs_hash_seq_write(struct file *file, const char __user *buffer,
size_t count, loff_t *off)
{
- struct lu_client_fld *fld;
+ struct seq_file *m = file->private_data;
+ struct lu_client_fld *fld = m->private;
struct lu_fld_hash *hash = NULL;
char fh_name[8];
int i;
if (copy_from_user(fh_name, buffer, count) != 0)
return -EFAULT;
- fld = ((struct seq_file *)file->private_data)->private;
-
for (i = 0; fld_hash[i].fh_name; i++) {
if (count != strlen(fld_hash[i].fh_name))
continue;
LDEBUGFS_SEQ_FOPS(fld_debugfs_hash);
LDEBUGFS_FOPS_WR_ONLY(fld, cache_flush);
-struct lprocfs_vars fld_client_debugfs_list[] = {
+struct ldebugfs_vars fld_client_debugfs_list[] = {
{ .name = "targets",
.fops = &fld_debugfs_targets_fops },
{ .name = "hash",
const struct dt_it_ops *iops;
int rc;
+ ++*pos;
if (param == NULL || param->fsp_stop)
return NULL;
return rc;
}
-struct seq_operations fldb_sops = {
+static const struct seq_operations fldb_sops = {
.start = fldb_seq_start,
.stop = fldb_seq_stop,
.next = fldb_seq_next,