xfs: handle ENOMEM correctly during initialisation of perag structures
authorDave Chinner <david@fromorbit.com>
Mon, 11 Jan 2010 11:47:48 +0000 (11:47 +0000)
committerAlex Elder <aelder@sgi.com>
Fri, 15 Jan 2010 21:34:30 +0000 (15:34 -0600)
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 <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>

No differences found