OpenCloudOS-Kernel/fs/quota
Jan Kara 0a5a9c7255 quota: Fix warning when a delayed write happens before quota is enabled
If a delayed-allocation write happens before quota is enabled, the
kernel spits out a warning:
WARNING: at fs/quota/dquot.c:988 dquot_claim_space+0x77/0x112()

because the fact that user has some delayed allocation is not recorded
in quota structure.

Make dquot_initialize() update amount of reserved space for user if it sees
inode has some space reserved. Also make sure that reserved quota space does
not go negative and we warn about the filesystem bug just once.

Signed-off-by: Jan Kara <jack@suse.cz>
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
dquot.c quota: Fix warning when a delayed write happens before quota is enabled 2010-03-05 00:20:21 +01:00
quota.c VFS: Export dquot_send_warning 2009-12-03 11:53:02 +00:00
quota_tree.c quota: Coding style fixes 2009-03-26 02:18:38 +01:00
quota_tree.h quota: Move quota files into separate directory 2009-03-26 02:18:35 +01:00
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
quotaio_v1.h quota: Move quota files into separate directory 2009-03-26 02:18:35 +01:00
quotaio_v2.h quota: Implement quota format with 64-bit space and inode limits 2009-12-10 15:02:54 +01:00