From a298fedcd65f3f9ddc0634a59f59bd7acfe76c01 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Mon, 26 May 2003 07:04:15 -0700 Subject: [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. --- include/linux/raid/md.h | 1 + include/linux/raid/multipath.h | 1 - include/linux/raid/raid5.h | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) (limited to 'include/linux') 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 #include #include +#include /* * '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 -#include 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 #include -#include /* * -- cgit v1.2.3