[XFS] Fix dbflush panic in xfs_qm_sync.
authorDonald Douwsma <donaldd@sgi.com>
Fri, 23 Nov 2007 05:27:42 +0000 (16:27 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Mon, 10 Dec 2007 02:40:10 +0000 (13:40 +1100)
commitd757762bf2f6aea954745c76b4d767067b85be9d
tree3885cad02c46003849f79f37195c7e8b7df13275
parentc6143911a7e0f8abef0319c801eb36718f57dfde
[XFS] Fix dbflush panic in xfs_qm_sync.

The recent behaviour layer removal dropped the check for quotas that have
been requested at mount time but have subsequently been turned off. This
results in a panic when accessing m_quotainfo which has been freed.

This patch adds the check originally made by xfs_qm_syncall() to
xfs_qm_sync().

SGI-PV: 969769
SGI-Modid: xfs-linux-melb:xfs-kern:29908a

Signed-off-by: Donald Douwsma <donaldd@sgi.com>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/quota/xfs_qm.c