summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dquot_item.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2011-12-06 21:58:10 +0000
committerBen Myers <bpm@sgi.com>2011-12-12 16:31:01 -0600
commitfdedf28b9492d69976110d12cc0d02d33c8ea7ea (patch)
treec7d390c58afa3fd342efadca88e3991c8cb5142f /fs/xfs/xfs_dquot_item.c
parentb39342134a6ec72778ffc2ddbd3c0faa10c64676 (diff)
downloadop-kernel-dev-fdedf28b9492d69976110d12cc0d02d33c8ea7ea.zip
op-kernel-dev-fdedf28b9492d69976110d12cc0d02d33c8ea7ea.tar.gz
xfs: untangle SYNC_WAIT and SYNC_TRYLOCK meanings for xfs_qm_dqflush
Only skip pinned dquots if SYNC_TRYLOCK is specified, and adjust the callers to keep the behaviour unchanged. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_dquot_item.c')
-rw-r--r--fs/xfs/xfs_dquot_item.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_dquot_item.c b/fs/xfs/xfs_dquot_item.c
index 79da711..3956e1b 100644
--- a/fs/xfs/xfs_dquot_item.c
+++ b/fs/xfs/xfs_dquot_item.c
@@ -133,7 +133,7 @@ xfs_qm_dquot_logitem_push(
* lock without sleeping, then there must not have been
* anyone in the process of flushing the dquot.
*/
- error = xfs_qm_dqflush(dqp, 0);
+ error = xfs_qm_dqflush(dqp, SYNC_TRYLOCK);
if (error)
xfs_warn(dqp->q_mount, "%s: push error %d on dqp %p",
__func__, error, dqp);
OpenPOWER on IntegriCloud