diff options
Diffstat (limited to 'fs/quota/quota_v1.c')
| -rw-r--r-- | fs/quota/quota_v1.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/quota/quota_v1.c b/fs/quota/quota_v1.c index 2ae757e9c008..34b37a67bb16 100644 --- a/fs/quota/quota_v1.c +++ b/fs/quota/quota_v1.c | |||
| @@ -71,7 +71,7 @@ static int v1_read_dqblk(struct dquot *dquot) | |||
| 71 | dquot->dq_dqb.dqb_ihardlimit == 0 && | 71 | dquot->dq_dqb.dqb_ihardlimit == 0 && |
| 72 | dquot->dq_dqb.dqb_isoftlimit == 0) | 72 | dquot->dq_dqb.dqb_isoftlimit == 0) |
| 73 | set_bit(DQ_FAKE_B, &dquot->dq_flags); | 73 | set_bit(DQ_FAKE_B, &dquot->dq_flags); |
| 74 | dqstats.reads++; | 74 | dqstats_inc(DQST_READS); |
| 75 | 75 | ||
| 76 | return 0; | 76 | return 0; |
| 77 | } | 77 | } |
| @@ -95,8 +95,7 @@ static int v1_commit_dqblk(struct dquot *dquot) | |||
| 95 | (char *)&dqblk, sizeof(struct v1_disk_dqblk), | 95 | (char *)&dqblk, sizeof(struct v1_disk_dqblk), |
| 96 | v1_dqoff(dquot->dq_id)); | 96 | v1_dqoff(dquot->dq_id)); |
| 97 | if (ret != sizeof(struct v1_disk_dqblk)) { | 97 | if (ret != sizeof(struct v1_disk_dqblk)) { |
| 98 | printk(KERN_WARNING "VFS: dquota write failed on dev %s\n", | 98 | quota_error(dquot->dq_sb, "dquota write failed"); |
| 99 | dquot->dq_sb->s_id); | ||
| 100 | if (ret >= 0) | 99 | if (ret >= 0) |
| 101 | ret = -EIO; | 100 | ret = -EIO; |
| 102 | goto out; | 101 | goto out; |
| @@ -104,7 +103,7 @@ static int v1_commit_dqblk(struct dquot *dquot) | |||
| 104 | ret = 0; | 103 | ret = 0; |
| 105 | 104 | ||
| 106 | out: | 105 | out: |
| 107 | dqstats.writes++; | 106 | dqstats_inc(DQST_WRITES); |
| 108 | 107 | ||
| 109 | return ret; | 108 | return ret; |
| 110 | } | 109 | } |
