diff options
author | kib <kib@FreeBSD.org> | 2012-02-22 13:01:17 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2012-02-22 13:01:17 +0000 |
commit | 311bc737d859452ad0514fe48c005bcefcbc3eda (patch) | |
tree | cd1043b04193451658ec2433680319290a5056f6 /sys/fs/msdosfs/msdosfs_vnops.c | |
parent | 55ea20f202575d6359b3073ecc07b86d105f1487 (diff) | |
download | FreeBSD-src-311bc737d859452ad0514fe48c005bcefcbc3eda.zip FreeBSD-src-311bc737d859452ad0514fe48c005bcefcbc3eda.tar.gz |
Use DOINGASYNC() to test for async allowance, to honor VFS syncing requests.
Noted by: bde
MFC after: 1 week
Diffstat (limited to 'sys/fs/msdosfs/msdosfs_vnops.c')
-rw-r--r-- | sys/fs/msdosfs/msdosfs_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vnops.c b/sys/fs/msdosfs/msdosfs_vnops.c index 2c0920d..838baf7 100644 --- a/sys/fs/msdosfs/msdosfs_vnops.c +++ b/sys/fs/msdosfs/msdosfs_vnops.c @@ -1249,7 +1249,7 @@ abortit: putushort(dotdotp->deStartCluster, dp->de_StartCluster); if (FAT32(pmp)) putushort(dotdotp->deHighClust, dp->de_StartCluster >> 16); - if (fvp->v_mount->mnt_flag & MNT_ASYNC) + if (DOINGASYNC(fvp)) bdwrite(bp); else if ((error = bwrite(bp)) != 0) { /* XXX should downgrade to ro here, fs is corrupt */ @@ -1383,7 +1383,7 @@ msdosfs_mkdir(ap) putushort(denp[1].deHighClust, pdep->de_StartCluster >> 16); } - if (ap->a_dvp->v_mount->mnt_flag & MNT_ASYNC) + if (DOINGASYNC(ap->a_dvp)) bdwrite(bp); else if ((error = bwrite(bp)) != 0) goto bad; |