aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/quota/quota.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/quota/quota.c b/fs/quota/quota.c
index dea86e8967ee..2b363e23f36e 100644
--- a/fs/quota/quota.c
+++ b/fs/quota/quota.c
@@ -117,6 +117,7 @@ static int quota_setinfo(struct super_block *sb, int type, void __user *addr)
117 117
118static void copy_to_if_dqblk(struct if_dqblk *dst, struct fs_disk_quota *src) 118static void copy_to_if_dqblk(struct if_dqblk *dst, struct fs_disk_quota *src)
119{ 119{
120 memset(dst, 0, sizeof(*dst));
120 dst->dqb_bhardlimit = src->d_blk_hardlimit; 121 dst->dqb_bhardlimit = src->d_blk_hardlimit;
121 dst->dqb_bsoftlimit = src->d_blk_softlimit; 122 dst->dqb_bsoftlimit = src->d_blk_softlimit;
122 dst->dqb_curspace = src->d_bcount; 123 dst->dqb_curspace = src->d_bcount;