]> git.baikalelectronics.ru Git - kernel.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)
commit71b0df53124aaba5f90af4e684e7730db9adf514
tree0db4b838b0b90f27401783e8e7e45842ec91f90a
parentea6a9e3c36929eff67873a12dd60da6b560c0011
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