]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
quota: Allow to separately enable quota accounting and enforcing limits
authorJan Kara <jack@suse.cz>
Wed, 20 Aug 2008 15:50:32 +0000 (17:50 +0200)
committerMark Fasheh <mfasheh@suse.com>
Mon, 5 Jan 2009 16:36:56 +0000 (08:36 -0800)
commitf55abc0fb9c3189de3da829adf3220322c0da43e
tree0db4b838b0b90f27401783e8e7e45842ec91f90a
parente4bc7b4b7ff783779b6928d55a9308910bf180a3
quota: Allow to separately enable quota accounting and enforcing limits

Split DQUOT_USR_ENABLED (and DQUOT_GRP_ENABLED) into DQUOT_USR_USAGE_ENABLED
and DQUOT_USR_LIMITS_ENABLED. This way we are able to separately enable /
disable whether we should:
1) ignore quotas completely
2) just keep uptodate information about usage
3) actually enforce quota limits

This is going to be useful when quota is treated as filesystem metadata - we
then want to keep quota information uptodate all the time and just enable /
disable limits enforcement.

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