diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2003-05-26 07:04:15 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-05-26 07:04:15 -0700 |
| commit | a298fedcd65f3f9ddc0634a59f59bd7acfe76c01 (patch) | |
| tree | b1d59c1164b44507ba07b7a6bd2f89a93ad53b2c /include/linux | |
| parent | 7a3cdc642c548bea7e32b2dc938649f6baa768ee (diff) | |
[PATCH] md: Use new single page bio splitting for raid0 and linear
Sometimes raid0 and linear are required to take a single page bio that
spans two devices. We use bio_split to split such a bio into two.
The the same time, bio.h is included by linux/raid/md.h so
we don't included it elsewhere anymore.
We also modify the mergeable_bvec functions to allow a bvec
that doesn't fit if it is the first bvec to be added to
the bio, and be careful never to return a negative length from a
bvec_mergable funciton.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/raid/md.h | 1 | ||||
| -rw-r--r-- | include/linux/raid/multipath.h | 1 | ||||
| -rw-r--r-- | include/linux/raid/raid5.h | 1 |
3 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/raid/md.h b/include/linux/raid/md.h index 98f0d1e27c4c..23b3a550b753 100644 --- a/include/linux/raid/md.h +++ b/include/linux/raid/md.h @@ -40,6 +40,7 @@ #include <linux/reboot.h> #include <linux/vmalloc.h> #include <linux/blkpg.h> +#include <linux/bio.h> /* * 'md_p.h' holds the 'physical' layout of RAID devices diff --git a/include/linux/raid/multipath.h b/include/linux/raid/multipath.h index 42d040ea63df..54cdead4ab10 100644 --- a/include/linux/raid/multipath.h +++ b/include/linux/raid/multipath.h @@ -2,7 +2,6 @@ #define _MULTIPATH_H #include <linux/raid/md.h> -#include <linux/bio.h> struct multipath_info { mdk_rdev_t *rdev; diff --git a/include/linux/raid/raid5.h b/include/linux/raid/raid5.h index c9eea7c884d0..fbb8fd15111c 100644 --- a/include/linux/raid/raid5.h +++ b/include/linux/raid/raid5.h @@ -3,7 +3,6 @@ #include <linux/raid/md.h> #include <linux/raid/xor.h> -#include <linux/bio.h> /* * |
