Print this page
8115 parallel zfs mount

@@ -19,10 +19,12 @@
  * CDDL HEADER END
  */
 /*
  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
+ *
+ * Copyright 2017 RackTop Systems.
  */
 
 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
 /*        All Rights Reserved   */
 

@@ -290,11 +292,11 @@
         (bp)->av_forw->av_back = (bp)->av_back; \
         (bp)->b_flags |= B_BUSY; \
         (bp)->av_forw = (bp)->av_back = NULL; \
 }
 
-#if defined(_KERNEL)
+#if defined(_KERNEL) || defined(_FAKE_KERNEL)
 /*
  * Macros to avoid the extra function call needed for binary compat.
  *
  * B_RETRYWRI is not included in clear_flags for BWRITE(), BWRITE2(),
  * or brwrite() so that the retry operation is persistent until the

@@ -395,11 +397,11 @@
 void bioerror(struct buf *bp, int error);
 void bioreset(struct buf *bp);
 struct buf *bioclone(struct buf *, off_t, size_t, dev_t, daddr_t,
         int (*)(struct buf *), struct buf *, int);
 size_t  biosize(void);
-#endif  /* defined(_KERNEL) */
+#endif  /* defined(_KERNEL) || defined(_FAKE_KERNEL) */
 
 #ifdef  __cplusplus
 }
 #endif