Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ufs Set `flags' before being used in the WRITE() fun...
details: https://anonhg.NetBSD.org/src/rev/bf0d20343acf
branches: trunk
changeset: 517693:bf0d20343acf
user: simonb <simonb%NetBSD.org@localhost>
date: Sat Nov 17 07:22:34 2001 +0000
description:
Set `flags' before being used in the WRITE() function.
diffstat:
sys/ufs/ufs/ufs_readwrite.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r 33e62ac0eaaa -r bf0d20343acf sys/ufs/ufs/ufs_readwrite.c
--- a/sys/ufs/ufs/ufs_readwrite.c Sat Nov 17 05:31:27 2001 +0000
+++ b/sys/ufs/ufs/ufs_readwrite.c Sat Nov 17 07:22:34 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs_readwrite.c,v 1.38 2001/11/08 05:24:52 chs Exp $ */
+/* $NetBSD: ufs_readwrite.c,v 1.39 2001/11/17 07:22:34 simonb Exp $ */
/*-
* Copyright (c) 1993
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: ufs_readwrite.c,v 1.38 2001/11/08 05:24:52 chs Exp $");
+__KERNEL_RCSID(1, "$NetBSD: ufs_readwrite.c,v 1.39 2001/11/17 07:22:34 simonb Exp $");
#ifdef LFS_READWRITE
#define BLKSIZE(a, b, c) blksize(a, b, c)
@@ -264,6 +264,7 @@
return (EFBIG);
}
+ flags = ioflag & IO_SYNC ? B_SYNC : 0;
async = vp->v_mount->mnt_flag & MNT_ASYNC;
resid = uio->uio_resid;
osize = ip->i_ffs_size;
@@ -380,7 +381,6 @@
goto out;
bcache:
- flags = ioflag & IO_SYNC ? B_SYNC : 0;
while (uio->uio_resid > 0) {
lbn = lblkno(fs, uio->uio_offset);
blkoffset = blkoff(fs, uio->uio_offset);
Home |
Main Index |
Thread Index |
Old Index