From: Jan Kara Date: Tue, 9 Feb 2010 17:20:39 +0000 (+0100) Subject: quota: Fix warning when a delayed write happens before quota is enabled X-Git-Tag: v2.6.34-rc1~192^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a5a9c725512461d19397490f3adf29931dca1f2;p=pandora-kernel.git 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 --- Reading git-diff-tree failed