]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfbaf630988539cc582625d6180f25a4d4f30f46d
tree4e878139ccd29a2adeb2a9fa6fcd9c279e8ce6f4
parent80fb922121a3c8b2cb668247a16cb3fe5c80bddc
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