Changeset View
Changeset View
Standalone View
Standalone View
head/sys/geom/journal/g_journal.c
Show First 20 Lines • Show All 1,047 Lines • ▼ Show 20 Lines | if (pbp->bio_offset + pbp->bio_length != cbp->bio_offset) { | ||||
("poffset=%jd plength=%jd coffset=%jd", | ("poffset=%jd plength=%jd coffset=%jd", | ||||
(intmax_t)pbp->bio_offset, | (intmax_t)pbp->bio_offset, | ||||
(intmax_t)pbp->bio_length, | (intmax_t)pbp->bio_length, | ||||
(intmax_t)cbp->bio_offset)); | (intmax_t)cbp->bio_offset)); | ||||
pbp = cbp; | pbp = cbp; | ||||
continue; | continue; | ||||
} | } | ||||
/* Be sure we don't end up with too big bio. */ | /* Be sure we don't end up with too big bio. */ | ||||
if (pbp->bio_length + cbp->bio_length > MAXPHYS) { | if (pbp->bio_length + cbp->bio_length > maxphys) { | ||||
pbp = cbp; | pbp = cbp; | ||||
continue; | continue; | ||||
} | } | ||||
/* Ok, we can join bios. */ | /* Ok, we can join bios. */ | ||||
GJ_LOGREQ(4, pbp, "Join: "); | GJ_LOGREQ(4, pbp, "Join: "); | ||||
GJ_LOGREQ(4, cbp, "and: "); | GJ_LOGREQ(4, cbp, "and: "); | ||||
pbp->bio_data = gj_realloc(pbp->bio_data, | pbp->bio_data = gj_realloc(pbp->bio_data, | ||||
pbp->bio_length + cbp->bio_length, pbp->bio_length); | pbp->bio_length + cbp->bio_length, pbp->bio_length); | ||||
▲ Show 20 Lines • Show All 1,960 Lines • Show Last 20 Lines |