Commit f9358b1b authored by Jan Kara's avatar Jan Kara Committed by Linus Torvalds

[PATCH] Quota bugfix

This should fix a problem with used-bytes counter overflow in old quota
format.
parent de7fe914
...@@ -21,7 +21,7 @@ static void v1_disk2mem_dqblk(struct mem_dqblk *m, struct v1_disk_dqblk *d) ...@@ -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_curinodes = d->dqb_curinodes;
m->dqb_bhardlimit = d->dqb_bhardlimit; m->dqb_bhardlimit = d->dqb_bhardlimit;
m->dqb_bsoftlimit = d->dqb_bsoftlimit; 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_itime = d->dqb_itime;
m->dqb_btime = d->dqb_btime; m->dqb_btime = d->dqb_btime;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment