Date: Tue, 04 Apr 2000 14:39:40 +0200 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Bruce Evans <bde@zeta.org.au> Cc: "Justin T. Gibbs" <gibbs@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_mib.c vfs_bio.c src/sys/sys buf.h Message-ID: <27007.954851980@critter.freebsd.dk> In-Reply-To: Your message of "Tue, 04 Apr 2000 22:29:29 %2B1000." <Pine.BSF.4.21.0004042139060.2001-100000@alphplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.BSF.4.21.0004042139060.2001-100000@alphplex.bde.org>, Bruce Ev ans writes: >> I will propose we stick to just one field in struct bio: a 64bit >> byte offset, we may want to keep a blkno around in struct buf, >> but lets decide that separately. > >This requires more widespread changes to convert block numbers to offsets >in all file systems, and normally gives 2 extra sets of conversions: No, we can populate the bio_offset in specfs::strategy if it isn't already, we don't need to touch any filesystems for this: if (!(bp->b_FLAGS & B_PHYS)) bp->bio_offset = bp->b_blkno << DEV_BSIZE; -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?27007.954851980>