Author: kib
Date: Wed Feb  8 15:07:19 2012
New Revision: 231204
URL: http://svn.freebsd.org/changeset/base/231204

Log:
  Unbreak detection of the async mode for clustered writes after r231075.
  
  Submitted by: bde
  MFC after:    12 days

Modified:
  head/sys/kern/vfs_cluster.c

Modified: head/sys/kern/vfs_cluster.c
==============================================================================
--- head/sys/kern/vfs_cluster.c Wed Feb  8 14:21:20 2012        (r231203)
+++ head/sys/kern/vfs_cluster.c Wed Feb  8 15:07:19 2012        (r231204)
@@ -604,7 +604,7 @@ cluster_write(struct vnode *vp, struct b
        int async;
 
        if (vp->v_type == VREG) {
-               async = vp->v_mount->mnt_kern_flag & MNTK_ASYNC;
+               async = DOINGASYNC(vp);
                lblocksize = vp->v_mount->mnt_stat.f_iosize;
        } else {
                async = 0;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to