]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Quota bugfix
authorJan Kara <jack@ucw.cz>
Tue, 7 Oct 2003 00:54:56 +0000 (17:54 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 7 Oct 2003 00:54:56 +0000 (17:54 -0700)
This should fix a problem with used-bytes counter overflow in old quota
format.

fs/quota_v1.c

index 573a93a3d405c05705136f6d2cf33fb166d5021f..6575d607fc8740c77ea7ae0278af41c952093c66 100644 (file)
@@ -21,7 +21,7 @@ static void v1_disk2mem_dqblk(struct mem_dqblk *m, struct v1_disk_dqblk *d)
        m->dqb_curinodes = d->dqb_curinodes;
        m->dqb_bhardlimit = d->dqb_bhardlimit;
        m->dqb_bsoftlimit = d->dqb_bsoftlimit;
-       m->dqb_curspace = d->dqb_curblocks << QUOTABLOCK_BITS;
+       m->dqb_curspace = ((qsize_t)d->dqb_curblocks) << QUOTABLOCK_BITS;
        m->dqb_itime = d->dqb_itime;
        m->dqb_btime = d->dqb_btime;
 }