From d556dc98b0f75faaa4eff532000a425bb669dd50 Mon Sep 17 00:00:00 2001 From: hannken Date: Sun, 2 Dec 2007 13:56:15 +0000 Subject: Fscow_run(): add a flag "bool data_valid" to note still valid data. Buffers run through copy-on-write are marked B_COWDONE. This condition is valid until the buffer has run through bwrite() and gets cleared from biodone(). Welcome to 4.99.39. Reviewed by: YAMAMOTO Takashi --- sys/dev/fss.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/fss.c b/sys/dev/fss.c index d025d1e2876..7c897611186 100644 --- a/sys/dev/fss.c +++ b/sys/dev/fss.c @@ -1,4 +1,4 @@ -/* $NetBSD: fss.c,v 1.38 2007/11/26 19:01:35 pooka Exp $ */ +/* $NetBSD: fss.c,v 1.39 2007/12/02 13:56:15 hannken Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -43,7 +43,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.38 2007/11/26 19:01:35 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.39 2007/12/02 13:56:15 hannken Exp $"); #include "fss.h" @@ -126,7 +126,7 @@ dev_type_strategy(fss_strategy); dev_type_dump(fss_dump); dev_type_size(fss_size); -static int fss_copy_on_write(void *, struct buf *); +static int fss_copy_on_write(void *, struct buf *, bool); static inline void fss_error(struct fss_softc *, const char *, ...); static int fss_create_files(struct fss_softc *, struct fss_set *, off_t *, struct lwp *); @@ -492,7 +492,7 @@ fss_umount_hook(struct mount *mp, int forced) * backing store if needed. */ static int -fss_copy_on_write(void *v, struct buf *bp) +fss_copy_on_write(void *v, struct buf *bp, bool data_valid) { int s; u_int32_t cl, ch, c; -- cgit