From: Jan Kara Date: Thu, 12 Nov 2009 14:42:08 +0000 (+0100) Subject: quota: Fix WARN_ON in lookup_one_len X-Git-Tag: v2.6.33-rc1~311^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c56818d7dc976a7392be82e8e04fe26347d591f3;p=pandora-kernel.git quota: Fix WARN_ON in lookup_one_len We should hold i_mutex when looking up quota files for journaled quotas, otherwise a WARN_ON in lookup_one_len triggers. The fact that we didn't hold i_mutex previously probably could not lead to a real bug since the filesystem is just being mounted / remounted read-write and thus the root directory cannot change anyway but it's definitely cleaner with i_mutex. Reported-by: Bastien ROUCARIES Signed-off-by: Jan Kara --- Reading git-diff-tree failed