| To: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 02/16] xfs: make sure to really flush all dquots in xfs_qm_quotacheck |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Mon, 5 Dec 2011 14:59:27 +1100 |
| Cc: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20111128082836.509334391@xxxxxxxxxxxxxxxxxxxxxx> |
| References: | <20111128082722.604873274@xxxxxxxxxxxxxxxxxxxxxx> <20111128082836.509334391@xxxxxxxxxxxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Mon, Nov 28, 2011 at 03:27:24AM -0500, Christoph Hellwig wrote:
> 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 life
live
> filesystem. At this point no dquot should be pinnable, but lets be anal
pedantic
> about it.
>
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>
>
> ---
> fs/xfs/xfs_qm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: xfs/fs/xfs/xfs_qm.c
> ===================================================================
> --- xfs.orig/fs/xfs/xfs_qm.c 2011-11-25 11:45:32.672075575 +0100
> +++ xfs/fs/xfs/xfs_qm.c 2011-11-25 11:45:35.875391556 +0100
> @@ -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
We definitely should flush everything here, so looks good.
Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx>
--
Dave Chinner
david@xxxxxxxxxxxxx
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 01/16] xfs: untange SYNC_WAIT and SYNC_TRYLOCK meanings for xfs_qm_dqflush, Dave Chinner |
|---|---|
| Next by Date: | Re: [PATCH 03/16] xfs: remove xfs_qm_sync, Dave Chinner |
| Previous by Thread: | Re: [PATCH 01/16] xfs: untange SYNC_WAIT and SYNC_TRYLOCK meanings for xfs_qm_dqflush, Dave Chinner |
| Next by Thread: | Re: [PATCH 03/16] xfs: remove xfs_qm_sync, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |