Whamcloud - gitweb
LU-9679 lustre: avoid cast of file->private_data
[fs/lustre-release.git] / lustre / quota / qmt_pool.c
index c6ef6fc..71e5a52 100644 (file)
@@ -125,11 +125,11 @@ static ssize_t
 qpi_soft_least_qunit_seq_write(struct file *file, const char __user *buffer,
                               size_t count, loff_t *off)
 {
-       struct qmt_pool_info *pool;
+       struct seq_file *m = file->private_data;
+       struct qmt_pool_info *pool = m->private;
        long long least_qunit;
        int qunit, rc;
 
-       pool = ((struct seq_file *)file->private_data)->private;
        LASSERT(pool != NULL);
 
        /* Not tuneable for inode limit */