diff options
author | pjd <pjd@FreeBSD.org> | 2006-02-11 14:42:23 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2006-02-11 14:42:23 +0000 |
commit | ef806177416ab33073961f577f0a9366966d3f28 (patch) | |
tree | ed3f0425d688197ee94e7dfb8ca58eb6ccbf4714 /sys/geom/mirror/g_mirror.h | |
parent | ab17cb5277cadbb0a9aad15f6c417243fb066cb6 (diff) | |
download | FreeBSD-src-ef806177416ab33073961f577f0a9366966d3f28.zip FreeBSD-src-ef806177416ab33073961f577f0a9366966d3f28.tar.gz |
Mark array as CLEAN when there are no write requests in
kern.geom.mirror.idletime seconds. Write, not any requests.
Mark array as clean immediatelly on last write close.
Prodded by: ru
MFC after: 3 days
Diffstat (limited to 'sys/geom/mirror/g_mirror.h')
-rw-r--r-- | sys/geom/mirror/g_mirror.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/geom/mirror/g_mirror.h b/sys/geom/mirror/g_mirror.h index 57bee2b..35d84b4 100644 --- a/sys/geom/mirror/g_mirror.h +++ b/sys/geom/mirror/g_mirror.h @@ -186,6 +186,8 @@ struct g_mirror_softc { int sc_bump_id; struct g_mirror_device_sync sc_sync; int sc_idle; /* DIRTY flags removed. */ + time_t sc_last_write; + u_int sc_writes; TAILQ_HEAD(, g_mirror_event) sc_events; struct mtx sc_events_mtx; |