Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2013 05:02:26 +0000 (UTC)
From:      Scott Long <scottl@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r251987 - stable/9/sys/sys
Message-ID:  <201306190502.r5J52QmE066567@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: scottl
Date: Wed Jun 19 05:02:25 2013
New Revision: 251987
URL: http://svnweb.freebsd.org/changeset/base/251987

Log:
  Poor man's binary compatibility of the struct bio: move the added structure
  members to the end of the structure.
  
  Obtained from:	Netflix

Modified:
  stable/9/sys/sys/bio.h

Modified: stable/9/sys/sys/bio.h
==============================================================================
--- stable/9/sys/sys/bio.h	Wed Jun 19 04:57:47 2013	(r251986)
+++ stable/9/sys/sys/bio.h	Wed Jun 19 05:02:25 2013	(r251987)
@@ -81,9 +81,6 @@ struct bio {
 	off_t	bio_offset;		/* Offset into file. */
 	long	bio_bcount;		/* Valid bytes in buffer. */
 	caddr_t	bio_data;		/* Memory, superblocks, indirect etc. */
-	struct vm_page **bio_ma;	/* Or unmapped. */
-	int	bio_ma_offset;		/* Offset in the first page of bio_ma. */
-	int	bio_ma_n;		/* Number of pages in bio_ma. */
 	int	bio_error;		/* Errno for BIO_ERROR. */
 	long	bio_resid;		/* Remaining I/O in bytes. */
 	void	(*bio_done)(struct bio *);
@@ -116,6 +113,11 @@ struct bio {
 
 	/* XXX: these go away when bio chaining is introduced */
 	daddr_t bio_pblkno;               /* physical block number */
+
+	/* Unmapped i/o.  Placed at the end in 9.x for binary compatibility. */
+	struct vm_page **bio_ma;	/* Physical page array. */
+	int	bio_ma_offset;		/* Offset in first page of bio_ma. */
+	int	bio_ma_n;		/* Number of pages in bio_ma. */
 };
 
 struct uio;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306190502.r5J52QmE066567>