瀏覽代碼

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 <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Christoph Hellwig 13 年之前
父節點
當前提交
f2fba558d3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/xfs/xfs_qm.c

+ 1 - 1
fs/xfs/xfs_qm.c

@@ -1661,7 +1661,7 @@ xfs_qm_quotacheck(
 	 * successfully.
 	 * successfully.
 	 */
 	 */
 	if (!error)
 	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
 	 * We can get this error if we couldn't do a dquot allocation inside