X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ffld%2Flproc_fld.c;h=5edc90dcece545a40a704cee357df104fcbd1084;hp=1bcecdfb973cef9076ce930826199eced699b392;hb=f07508d17b49574c7ea47a855c6e8af2b23c3add;hpb=e07d4a58206756252c28b51048057c87a7cdb3c6 diff --git a/lustre/fld/lproc_fld.c b/lustre/fld/lproc_fld.c index 1bcecdf..5edc90d 100644 --- a/lustre/fld/lproc_fld.c +++ b/lustre/fld/lproc_fld.c @@ -82,7 +82,8 @@ static ssize_t 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; @@ -93,8 +94,6 @@ fld_debugfs_hash_seq_write(struct file *file, const char __user *buffer, 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;