quota: Remove locking for writing to the old quota format
[sfrench/cifs-2.6.git] / fs / quota / quota_v1.c
index 8fe79beced5cc05c77ad0d536fe017beeb4a2f9e..12d69cda57cca9f25a998e88b9be38e534aa0e11 100644 (file)
@@ -56,8 +56,9 @@ static int v1_read_dqblk(struct dquot *dquot)
 {
        int type = dquot->dq_id.type;
        struct v1_disk_dqblk dqblk;
+       struct quota_info *dqopt = sb_dqopt(dquot->dq_sb);
 
-       if (!sb_dqopt(dquot->dq_sb)->files[type])
+       if (!dqopt->files[type])
                return -EINVAL;
 
        /* Set structure to 0s in case read fails/is after end of file */