* Subject:[PATCH 006:013]:raid0: remove redundant argument from is_in_chunk_boundary
@ 2009-06-16 21:54 raz ben yehuda
0 siblings, 0 replies; only message in thread
From: raz ben yehuda @ 2009-06-16 21:54 UTC (permalink / raw)
To: linux raid, Neil Brown
remove redundant argument from is_in_chunk_boundary
raid0.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Signed-off-by: razb <raziebe@gmail.com>
---
diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c
index 0bb151b..c3fd471 100644
--- a/drivers/md/raid0.c
+++ b/drivers/md/raid0.c
@@ -476,8 +476,8 @@ static mdk_rdev_t *map_sector(mddev_t *mddev, struct strip_zone *zone,
/*
* Is io distribute over 1 or more chunks ?
*/
-static inline int is_io_in_chunk_boundary(mddev_t *mddev,
- unsigned int chunk_sects, struct bio *bio)
+static inline int is_io_in_chunk_boundary(unsigned int chunk_sects,
+ struct bio *bio)
{
if (likely(is_power_of_2(chunk_sects))) {
return chunk_sects >= ((bio->bi_sector & (chunk_sects-1))
@@ -511,7 +511,7 @@ static int raid0_make_request(struct request_queue *q, struct bio *bio)
part_stat_unlock();
chunk_sects = mddev->chunk_sectors;
- if (unlikely(!is_io_in_chunk_boundary(mddev, chunk_sects, bio))) {
+ if (unlikely(!is_io_in_chunk_boundary(chunk_sects, bio))) {
sector_t sector = bio->bi_sector;
struct bio_pair *bp;
/* Sanity check -- queue functions should prevent this happening */
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-16 21:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-16 21:54 Subject:[PATCH 006:013]:raid0: remove redundant argument from is_in_chunk_boundary raz ben yehuda
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.