X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ffid%2Flproc_fid.c;h=688082e09bd4ca7cccb5a20f9af3bd8d14a55d84;hp=0f460f91c665e5818075642c8e70afa094456219;hb=f07508d17b49574c7ea47a855c6e8af2b23c3add;hpb=e07d4a58206756252c28b51048057c87a7cdb3c6 diff --git a/lustre/fid/lproc_fid.c b/lustre/fid/lproc_fid.c index 0f460f9..688082e 100644 --- a/lustre/fid/lproc_fid.c +++ b/lustre/fid/lproc_fid.c @@ -105,11 +105,11 @@ ldebugfs_server_fid_space_seq_write(struct file *file, const char __user *buffer, size_t count, loff_t *off) { - struct lu_server_seq *seq; + struct seq_file *m = file->private_data; + struct lu_server_seq *seq = m->private; int rc; ENTRY; - seq = ((struct seq_file *)file->private_data)->private; mutex_lock(&seq->lss_mutex); rc = ldebugfs_fid_write_common(buffer, count, &seq->lss_space); @@ -494,11 +494,11 @@ ldebugfs_client_fid_space_seq_write(struct file *file, const char __user *buffer, size_t count, loff_t *off) { - struct lu_client_seq *seq; + struct seq_file *m = file->private_data; + struct lu_client_seq *seq = m->private; int rc; ENTRY; - seq = ((struct seq_file *)file->private_data)->private; mutex_lock(&seq->lcs_mutex); rc = ldebugfs_fid_write_common(buffer, count, &seq->lcs_space);