Subject: Re: File system suspension -- new API
To: None <hannken@eis.cs.tu-bs.de>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-kern
Date: 12/31/2006 04:03:49
> @@ -362,9 +369,11 @@ ffs_full_fsync(void *v)
>  
>  	if (vp->v_type == VREG || vp->v_type == VBLK) {
>  		simple_lock(&vp->v_interlock);
>  		error = VOP_PUTPAGES(vp, 0, 0, PGO_ALLPAGES | PGO_CLEANIT |
> -		    ((ap->a_flags & FSYNC_WAIT) ? PGO_SYNCIO : 0));
> +		    ((ap->a_flags & FSYNC_WAIT) ? PGO_SYNCIO : 0) |
> +		    (fstrans_getstate(vp->v_mount) == fstrans_suspending ?
> +			PGO_FREE : 0));
>  		if (error) {
>  			return error;
>  		}
>  	}

why PGO_FREE?

YAMAMOTO Takashi