[XFS] fix uninitialised variable bug in dquot release.
authorDave Chinner <david@fromorbit.com>
Fri, 28 Nov 2008 03:23:34 +0000 (14:23 +1100)
committerNiv Sardi <xaiki@sgi.com>
Mon, 1 Dec 2008 00:11:36 +0000 (11:11 +1100)
commit0924b585fc49bf371bc700c23e516a538bf589af
tree9d53fce5e84c40804540e9ee0b98a96feb89e1cf
parent2e6560929d8ab4b650fecc3a87013852b34f0922
[XFS] fix uninitialised variable bug in dquot release.

gcc is warning about an uninitialised variable in xfs_growfs_rt().
This is a false positive. Fix it by changing the scope of the
transaction pointer to wholly within the internal loop inside
the function.

While there, preemptively change xfs_growfs_rt_alloc() in the
same way as it has exactly the same structure as xfs_growfs_rt()
but gcc is not warning about it. Yet.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Niv Sardi <xaiki@sgi.com>
fs/xfs/xfs_rtalloc.c