X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Flov%2Flproc_lov.c;h=1a1de4622bc043a1e93dbbbe3087c361653a5a30;hb=f9920b4924edce1bd341622eee4281fdcd41845a;hp=e8f9abbe9bf5598d85088021d45250129622d6bd;hpb=73c12f4d6c98476c0dc5de77a646a157db727eef;p=fs%2Flustre-release.git diff --git a/lustre/lov/lproc_lov.c b/lustre/lov/lproc_lov.c index e8f9abb..1a1de46 100644 --- a/lustre/lov/lproc_lov.c +++ b/lustre/lov/lproc_lov.c @@ -236,7 +236,7 @@ static int lov_tgt_seq_show(struct seq_file *p, void *v) tgt->ltd_active ? "" : "IN"); } -struct seq_operations lov_tgt_sops = { +static const struct seq_operations lov_tgt_sops = { .start = lov_tgt_seq_start, .stop = lov_tgt_seq_stop, .next = lov_tgt_seq_next, @@ -248,7 +248,10 @@ static int lov_target_seq_open(struct inode *inode, struct file *file) struct seq_file *seq; int rc; - LPROCFS_ENTRY_CHECK(PDE(inode)); + rc = LPROCFS_ENTRY_CHECK(inode); + if (rc < 0) + return rc; + rc = seq_open(file, &lov_tgt_sops); if (rc) return rc;