diff options
| author | hannken <hannken@NetBSD.org> | 2007-12-02 13:56:15 +0000 |
|---|---|---|
| committer | hannken <hannken@NetBSD.org> | 2007-12-02 13:56:15 +0000 |
| commit | d556dc98b0f75faaa4eff532000a425bb669dd50 (patch) | |
| tree | 57708fbc87a2d1c54d66576841e47901a53fdf48 /sys/dev/fss.c | |
| parent | 587600728d3d1bdb8ea4937aaf2f510a046665a2 (diff) | |
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 <yamt@netbsd.org>
Diffstat (limited to 'sys/dev/fss.c')
| -rw-r--r-- | sys/dev/fss.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 <sys/cdefs.h> -__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; |
