aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/bio.h
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-10-09 07:11:03 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-10-09 07:11:03 +0000
commit61e1c1f39ee6e1e15e19789d7b8d6bee1b89ec58 (patch)
tree3f181d06caa2328b884650007ea2fd8aa5d6b2bf /sys/sys/bio.h
parent94c61219f56cba922b3ea6e81e2ec6875d522fae (diff)
downloadsrc-61e1c1f39ee6e1e15e19789d7b8d6bee1b89ec58.tar.gz
src-61e1c1f39ee6e1e15e19789d7b8d6bee1b89ec58.zip
Add a field for tallying the number of spawned bio's a bio has.
Rearrange and comment some GEOM related fields. Sponsored by: DARPA & NAI Labs.
Notes
Notes: svn path=/head/; revision=104700
Diffstat (limited to 'sys/sys/bio.h')
-rw-r--r--sys/sys/bio.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/sys/bio.h b/sys/sys/bio.h
index a202449e8660..3d5b12c24ff4 100644
--- a/sys/sys/bio.h
+++ b/sys/sys/bio.h
@@ -75,16 +75,17 @@ struct bio {
void *bio_caller1; /* Private use by the caller. */
void *bio_caller2; /* Private use by the caller. */
TAILQ_ENTRY(bio) bio_queue; /* Disksort queue. */
+ const char *bio_attribute; /* Attribute for BIO_[GS]ETATTR */
+ struct g_consumer *bio_from; /* GEOM linkage */
+ struct g_provider *bio_to; /* GEOM linkage */
+ off_t bio_length; /* Like bio_bcount */
+ off_t bio_completed; /* Inverse of bio_resid */
+ u_int bio_children; /* Number of spawned bios */
/* XXX: these go away when bio chaining is introduced */
daddr_t bio_pblkno; /* physical block number */
struct iodone_chain *bio_done_chain;
struct bio *bio_linkage;
- off_t bio_length;
- const char *bio_attribute;
- off_t bio_completed;
- struct g_consumer *bio_from;
- struct g_provider *bio_to;
};
/* bio_cmd */