xfs
[Top] [All Lists]

[PATCH 19/45] xfs: remove the sync_mode argument to xfs_qm_dqflush_all

To: xfs@xxxxxxxxxxx
Subject: [PATCH 19/45] xfs: remove the sync_mode argument to xfs_qm_dqflush_all
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Fri, 28 Oct 2011 05:54:42 -0400
References: <20111028095423.796574703@xxxxxxxxxxxxxxxxxxxxxx>
User-agent: quilt/0.48-1
It always is zero, and removing it will make future changes easier.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>

---
 fs/xfs/xfs_qm.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

Index: xfs/fs/xfs/xfs_qm.c
===================================================================
--- xfs.orig/fs/xfs/xfs_qm.c    2011-10-27 22:40:01.234172361 +0200
+++ xfs/fs/xfs/xfs_qm.c 2011-10-27 22:40:01.742172177 +0200
@@ -415,8 +415,7 @@ xfs_qm_unmount_quotas(
  */
 STATIC int
 xfs_qm_dqflush_all(
-       struct xfs_mount        *mp,
-       int                     sync_mode)
+       struct xfs_mount        *mp)
 {
        struct xfs_quotainfo    *q = mp->m_quotainfo;
        int                     recl;
@@ -451,7 +450,7 @@ again:
                 * across a disk write.
                 */
                mutex_unlock(&q->qi_dqlist_lock);
-               error = xfs_qm_dqflush(dqp, sync_mode);
+               error = xfs_qm_dqflush(dqp, 0);
                xfs_dqunlock(dqp);
                if (error)
                        return error;
@@ -1566,7 +1565,7 @@ xfs_qm_quotacheck(
         * successfully.
         */
        if (!error)
-               error = xfs_qm_dqflush_all(mp, 0);
+               error = xfs_qm_dqflush_all(mp);
 
        /*
         * We can get this error if we couldn't do a dquot allocation inside

<Prev in Thread] Current Thread [Next in Thread>