mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 21:21:05 +01:00
Rename bio_linkage to the more obvious bio_parent.
Add bio_t0 timestamp, and include <sys/time.h> where needed
This commit is contained in:
parent
d38c8c5622
commit
936cc4614b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110517
@ -57,6 +57,7 @@ enum {
|
||||
#include <sys/param.h>
|
||||
#include <sys/errno.h>
|
||||
#include <sys/dkstat.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/bio.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/malloc.h>
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include <sys/kernel.h>
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/bio.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/mtio.h>
|
||||
|
@ -53,6 +53,7 @@
|
||||
#endif
|
||||
#include <sys/errno.h>
|
||||
#include <sys/dkstat.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/bio.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/malloc.h>
|
||||
|
@ -363,7 +363,7 @@ g_dev_done(struct bio *bp2)
|
||||
{
|
||||
struct bio *bp;
|
||||
|
||||
bp = bp2->bio_linkage;
|
||||
bp = bp2->bio_parent;
|
||||
bp->bio_error = bp2->bio_error;
|
||||
if (bp->bio_error != 0) {
|
||||
g_trace(G_T_BIO, "g_dev_done(%p) had error %d",
|
||||
|
@ -148,7 +148,7 @@ g_clone_bio(struct bio *bp)
|
||||
|
||||
bp2 = g_new_bio();
|
||||
if (bp2 != NULL) {
|
||||
bp2->bio_linkage = bp;
|
||||
bp2->bio_parent = bp;
|
||||
bp2->bio_cmd = bp->bio_cmd;
|
||||
bp2->bio_length = bp->bio_length;
|
||||
bp2->bio_offset = bp->bio_offset;
|
||||
|
@ -494,7 +494,7 @@ g_std_done(struct bio *bp)
|
||||
{
|
||||
struct bio *bp2;
|
||||
|
||||
bp2 = bp->bio_linkage;
|
||||
bp2 = bp->bio_parent;
|
||||
if (bp2->bio_error == 0)
|
||||
bp2->bio_error = bp->bio_error;
|
||||
bp2->bio_completed += bp->bio_completed;
|
||||
|
@ -71,10 +71,11 @@ struct bio {
|
||||
off_t bio_length; /* Like bio_bcount */
|
||||
off_t bio_completed; /* Inverse of bio_resid */
|
||||
u_int bio_children; /* Number of spawned bios */
|
||||
struct bio *bio_parent; /* Pointer to parent */
|
||||
struct bintime bio_t0; /* Time request started */
|
||||
|
||||
/* XXX: these go away when bio chaining is introduced */
|
||||
daddr_t bio_pblkno; /* physical block number */
|
||||
struct bio *bio_linkage;
|
||||
};
|
||||
|
||||
/* bio_cmd */
|
||||
|
Loading…
Reference in New Issue
Block a user