From: Christoph Hellwig Date: Tue, 27 Mar 2012 14:34:46 +0000 (-0400) Subject: xfs: avoid taking the ilock unnessecarily in xfs_qm_dqattach X-Git-Tag: v3.5-rc1~91^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4d05e3019692fc5a8c573fbce60de2d48c5b7a1;p=pandora-kernel.git xfs: avoid taking the ilock unnessecarily in xfs_qm_dqattach Check if we actually need to attach a dquot before taking the ilock in xfs_qm_dqattach. This avoid superflous lock roundtrips for the common cases of quota support compiled in but not activated on a filesystem and an inode that already has the dquots attached. Signed-off-by: Christoph Hellwig Reviewed-by: Mark Tinguely Reviewed-by: Dave Chinner Signed-off-by: Ben Myers --- Reading git-diff-tree failed