linux-kernel-test/fs/quota
Dmitry Monakhov c469070aea quota: manage reserved space when quota is not active [v2]
Since we implemented generic reserved space management interface,
then it is possible to account reserved space even when quota
is not active (similar to i_blocks/i_bytes).

Without this patch following testcase result in massive comlain from
WARN_ON in dquot_claim_space()

TEST_CASE:
mount /dev/sdb /mnt -oquota
dd if=/dev/zero of=/mnt/test bs=1M count=1
quotaon /mnt
# fs_reserved_spave == 1Mb
# quota_reserved_space == 0, because quota was disabled
dd if=/dev/zero of=/mnt/test seek=1 bs=1M count=1
# fs_reserved_spave == 2Mb
# quota_reserved_space == 1Mb
sync  # ->dquot_claim_space() -> WARN_ON

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Jan Kara <jack@suse.cz>
2010-03-05 00:20:21 +01:00
..
dquot.c quota: manage reserved space when quota is not active [v2] 2010-03-05 00:20:21 +01:00
Kconfig quota: Implement quota format with 64-bit space and inode limits 2009-12-10 15:02:54 +01:00
Makefile quota: remove obsolete comments in fs/quota/Makefile 2009-04-27 16:49:52 +02:00
quota_tree.c
quota_tree.h
quota_v1.c const: struct quota_format_ops 2009-12-10 15:02:51 +01:00
quota_v2.c quota: Improve checking of quota file header 2009-12-23 13:44:13 +01:00
quota.c VFS: Export dquot_send_warning 2009-12-03 11:53:02 +00:00
quotaio_v1.h
quotaio_v2.h quota: Implement quota format with 64-bit space and inode limits 2009-12-10 15:02:54 +01:00