From: Christoph Hellwig Date: Tue, 6 Dec 2011 21:58:11 +0000 (+0000) Subject: xfs: make sure to really flush all dquots in xfs_qm_quotacheck X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f2fba558d3c80dcd10bbadbb8f05c78dc2860b95;p=linux-beck.git xfs: make sure to really flush all dquots in xfs_qm_quotacheck Make sure we do not skip any dquots when flushing them out after a quotacheck to make sure that we will never have any dirty dquots on a live filesystem. At this point no dquot should be pinnable, but lets be pedantic about it. Signed-off-by: Christoph Hellwig Reviewed-by: Dave Chinner Signed-off-by: Ben Myers --- diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c index 93cafacbed3c..c704ea0115d5 100644 --- a/fs/xfs/xfs_qm.c +++ b/fs/xfs/xfs_qm.c @@ -1661,7 +1661,7 @@ xfs_qm_quotacheck( * successfully. */ if (!error) - error = xfs_qm_dqflush_all(mp, SYNC_TRYLOCK); + error = xfs_qm_dqflush_all(mp, 0); /* * We can get this error if we couldn't do a dquot allocation inside