Whamcloud - gitweb
LU-3319 procfs: migrate quota proc handling to seq_files
[fs/lustre-release.git] / lustre / quota / lproc_quota.c
index 791f47d..1e9f785 100644 (file)
@@ -253,7 +253,6 @@ struct seq_operations lprocfs_quota_seq_sops = {
 
 static int lprocfs_quota_seq_open(struct inode *inode, struct file *file)
 {
-       struct proc_dir_entry   *dp = PDE(inode);
        struct seq_file         *seq;
        int                      rc;
        struct lquota_procfs    *lqp;
@@ -265,7 +264,7 @@ static int lprocfs_quota_seq_open(struct inode *inode, struct file *file)
                return -ENOMEM;
 
        /* store pointer to object we would like to iterate over */
-       lqp->lqp_obj = (struct dt_object *)dp->data;
+       lqp->lqp_obj = (struct dt_object *)PDE_DATA(inode);
 
        /* Initialize the common environment to be used in the seq operations */
        rc = lu_env_init(&lqp->lqp_env, LCT_LOCAL);
@@ -280,7 +279,7 @@ static int lprocfs_quota_seq_open(struct inode *inode, struct file *file)
                goto out_lqp;
        }
 
-       if (LPROCFS_ENTRY_CHECK(dp)) {
+       if (LPROCFS_ENTRY_CHECK(PDE(inode))) {
                rc = -ENOENT;
                goto out_env;
        }