Skip to content

Commit

Permalink
[XFS] Fix dbflush panic in xfs_qm_sync.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Donald Douwsma authored and Lachlan McIlroy committed Dec 10, 2007
1 parent c614391 commit d757762
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/xfs/quota/xfs_qm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,9 @@ xfs_qm_sync(
boolean_t nowait;
int error;

if (! XFS_IS_QUOTA_ON(mp))
return 0;

restarts = 0;
/*
* We won't block unless we are asked to.
Expand Down

0 comments on commit d757762

Please sign in to comment.