From: Christoph Hellwig Date: Wed, 4 Jul 2012 14:54:50 +0000 (-0400) Subject: xfs: do not read the AGI buffer in xfs_dialloc until nessecary X-Git-Tag: v3.6-rc1~42^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be60fe54b216a62403b816d3930a66ad7c51cbc6;p=pandora-kernel.git xfs: do not read the AGI buffer in xfs_dialloc until nessecary Refactor the AG selection loop in xfs_dialloc to operate on the in-memory perag data as much as possible. We only read the AGI buffer once we have selected an AG to allocate inodes now instead of for every AG considered. Signed-off-by: Christoph Hellwig Reviewed-by: Dave Chinner Reviewed-by: Mark Tinguely Signed-off-by: Ben Myers --- Reading git-diff-tree failed