From: Dave Chinner Date: Mon, 11 Jan 2010 11:47:48 +0000 (+0000) Subject: xfs: handle ENOMEM correctly during initialisation of perag structures X-Git-Tag: v2.6.34-rc1~278^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b26c5825e023b1bccac7afd174ebe55b8905cb1;p=pandora-kernel.git xfs: handle ENOMEM correctly during initialisation of perag structures Add proper error handling in case an error occurs while initializing new perag structures for a mount point. The mount structure is restored to its previous state by deleting and freeing any perag structures added during the call. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Signed-off-by: Alex Elder --- Reading git-diff-tree failed