Commit:     d757762bf2f6aea954745c76b4d767067b85be9d
Parent:     c6143911a7e0f8abef0319c801eb36718f57dfde
Author:     Donald Douwsma <[EMAIL PROTECTED]>
AuthorDate: Fri Nov 23 16:27:42 2007 +1100
Committer:  Lachlan McIlroy <[EMAIL PROTECTED]>
CommitDate: Mon Dec 10 13:40:10 2007 +1100

    [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
    SGI-PV: 969769
    SGI-Modid: xfs-linux-melb:xfs-kern:29908a
    Signed-off-by: Donald Douwsma <[EMAIL PROTECTED]>
    Signed-off-by: David Chinner <[EMAIL PROTECTED]>
    Signed-off-by: Lachlan McIlroy <[EMAIL PROTECTED]>
 fs/xfs/quota/xfs_qm.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/fs/xfs/quota/xfs_qm.c b/fs/xfs/quota/xfs_qm.c
index b5f9128..d488645 100644
--- a/fs/xfs/quota/xfs_qm.c
+++ b/fs/xfs/quota/xfs_qm.c
@@ -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.
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to