From: Jan Kara Date: Wed, 6 Jan 2010 16:20:35 +0000 (+0100) Subject: quota: Cleanup S_NOQUOTA handling X-Git-Tag: v2.6.34-rc1~192^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26245c949c8473ea7352907b5a54bc34487eb87f;p=pandora-kernel.git quota: Cleanup S_NOQUOTA handling Cleanup handling of S_NOQUOTA inode flag and document it a bit. The flag does not have to be set under dqptr_sem. Only functions modifying inode's dquot pointers have to check the flag under dqptr_sem before going forward with the modification. This way we are sure that we cannot add new dquot pointers to the inode which is just becoming a quota file. The good thing about this cleanup is that there are no more places in quota code which enforce i_mutex vs. dqptr_sem lock ordering (in particular that dqptr_sem -> i_mutex of quota file). This should silence some (false) lockdep warnings with ext4 + quota and generally make life of some filesystems easier. Signed-off-by: Jan Kara --- Reading git-diff-tree failed