Skip to content

Commit

Permalink
xfs: make sure to really flush all dquots in xfs_qm_quotacheck
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Ben Myers committed Dec 12, 2011
1 parent fdedf28 commit f2fba55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/xfs_qm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2fba55

Please sign in to comment.