quota: Increase size of variables for limits and inode usage
authorJan Kara <jack@suse.cz>
Wed, 20 Aug 2008 12:45:12 +0000 (14:45 +0200)
committerMark Fasheh <mfasheh@suse.com>
Mon, 5 Jan 2009 16:36:55 +0000 (08:36 -0800)
commit12095460f7f315f8ef67a55b2194195d325d48d7
tree4e878139ccd29a2adeb2a9fa6fcd9c279e8ce6f4
parent74f783af95c982aef6d3a1415275650dcf511666
quota: Increase size of variables for limits and inode usage

So far quota was fine with quota block limits and inode limits/numbers in
a 32-bit type. Now with rapid increase in storage sizes there are coming
requests to be able to handle quota limits above 4TB / more that 2^32 inodes.
So bump up sizes of types in mem_dqblk structure to 64-bits to be able to
handle this. Also update inode allocation / checking functions to use qsize_t
and make global structure keep quota limits in bytes so that things are
consistent.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/dquot.c
fs/quota_v1.c
fs/quota_v2.c
include/linux/quota.h
include/linux/quotaops.h