patch-2.4.23 linux-2.4.23/fs/quota_v1.c

Next file: linux-2.4.23/fs/ramfs/inode.c
Previous file: linux-2.4.23/fs/proc/proc_misc.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/fs/quota_v1.c linux-2.4.23/fs/quota_v1.c
@@ -17,7 +17,7 @@
 	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;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)