summaryrefslogtreecommitdiffstats
path: root/sys/gnu
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>1999-07-13 18:20:13 +0000
committermckusick <mckusick@FreeBSD.org>1999-07-13 18:20:13 +0000
commitf091c51c34a496d3062026be39d6948fa02b6c6e (patch)
tree7cab0e079bf7fb1610e4cb41564952dc7ee44c83 /sys/gnu
parent514e7c3963e88bf59518e2ba852c20fe7ca68df4 (diff)
downloadFreeBSD-src-f091c51c34a496d3062026be39d6948fa02b6c6e.zip
FreeBSD-src-f091c51c34a496d3062026be39d6948fa02b6c6e.tar.gz
Create the macro DOINGASYNC to check whether the MNT_ASYNC flag has
been set for a mount point. Insert missing checks to ensure that all write operations are done asynchronously when the MNT_ASYNC option has been requested. Submitted by: Craig A Soules <soules+@andrew.cmu.edu> Reviewed by: Kirk McKusick <mckusick@mckusick.com>
Diffstat (limited to 'sys/gnu')
-rw-r--r--sys/gnu/ext2fs/inode.h3
-rw-r--r--sys/gnu/fs/ext2fs/inode.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/gnu/ext2fs/inode.h b/sys/gnu/ext2fs/inode.h
index 9985449..77fe7b3 100644
--- a/sys/gnu/ext2fs/inode.h
+++ b/sys/gnu/ext2fs/inode.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)inode.h 8.9 (Berkeley) 5/14/95
- * $Id: inode.h,v 1.24 1998/10/13 15:45:43 bde Exp $
+ * $Id: inode.h,v 1.25 1999/03/06 05:21:09 bde Exp $
*/
#ifndef _UFS_UFS_INODE_H_
@@ -147,6 +147,7 @@ struct indir {
/* Determine if soft dependencies are being done */
#define DOINGSOFTDEP(vp) ((vp)->v_mount->mnt_flag & MNT_SOFTDEP)
+#define DOINGASYNC(vp) ((vp)->v_mount->mnt_flag & MNT_ASYNC)
/* This overlays the fid structure (see mount.h). */
struct ufid {
diff --git a/sys/gnu/fs/ext2fs/inode.h b/sys/gnu/fs/ext2fs/inode.h
index 9985449..77fe7b3 100644
--- a/sys/gnu/fs/ext2fs/inode.h
+++ b/sys/gnu/fs/ext2fs/inode.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)inode.h 8.9 (Berkeley) 5/14/95
- * $Id: inode.h,v 1.24 1998/10/13 15:45:43 bde Exp $
+ * $Id: inode.h,v 1.25 1999/03/06 05:21:09 bde Exp $
*/
#ifndef _UFS_UFS_INODE_H_
@@ -147,6 +147,7 @@ struct indir {
/* Determine if soft dependencies are being done */
#define DOINGSOFTDEP(vp) ((vp)->v_mount->mnt_flag & MNT_SOFTDEP)
+#define DOINGASYNC(vp) ((vp)->v_mount->mnt_flag & MNT_ASYNC)
/* This overlays the fid structure (see mount.h). */
struct ufid {
OpenPOWER on IntegriCloud